Question: Type in the code below and describe what happens when you run it ( # 1 - 4 , 5 points each ) # -

Type in the code below and describe what happens when you run it (#1-4,5 points each)
#------- Main Function ----------------------
def main(): # The "main" function definition
function1() #function call to "function1"
function2() # function call to "function2"
#-------- Custom functions below--------------
def function1(): # The "function1" function definition
print("Inside Function1")
def function2():
x =3
y =2
z = x * y
print("Z =", z)
main() #this line needed at the bottom

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!