Question: 1 . Run the following code by saving it in a python file. What output are you getting? If you encounter an error, specify the

1. Run the following code by saving it in a python file. What output are you getting? If you
encounter an error, specify the cause of the error as a comment in your code. Modify the code
to correct the error.
def test_function():
name = input("Enter your name: ")
print("Hi!")
test_function()
print("Your name is:", name)

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!