Question: Global variables python define a variable name with your name define a function greet( ) that sets the global variable name to Jane Doe. The

  1. Global variables python
    • define a variable name with your name
    • define a function greet( ) that sets the global variable name to "Jane Doe". The function should return "Hello" and the variable name
    • print name
    • call the function greet( ) and print the output
    • print name
    • Has the value of name changed after calling the function greet( )?

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!