Question 8:
Modify the following code in a the main function in a way that the output for the sample_function displays: "the variable value is 150"
Note: You can only add code to the main( ) function.
In [ ]:
# Write your code over here.
# Write your code over here.
my_value = 120
def main():
sample_function()
def sample_function():
print(f'the variable value is {my_value}')
main()
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.