Question: Analyse the following code: # function definitions def myFunctiono (number) : x=7+ number print(x) def myFunction1 (altNumber) : xx=7+ alt Number return xx def myFunction2

 Analyse the following code: \# function definitions def myFunctiono (number) :

Analyse the following code: \# function definitions def myFunctiono (number) : x=7+ number print(x) def myFunction1 (altNumber) : xx=7+ alt Number return xx def myFunction2 (): return x+3 \# call the functions x=5 print (x) myFunctiono (2) print (myFunction1 (x) ) print(x) print (myrunction2()) Answer the following questions (about the program above) in the online text-editor. (add submission will open this editor). A. Which variables are global variables? B. For each function, what are the local variables and the local parameters? C. What does the program print? (There are 5 print statementsI) D. What is the scope of xx

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 Databases Questions!