Question: Why does the following code not print anything? i = hello world def print _ hello _ world ( ) : print ( i )

Why does the following code not print anything?
i= "hello world"
def print_hello_world() :
print(i)
he variable i does not contain the string "hello world."
You can not access a global variable inside a function.
The function has not been called.
It will print "hello world."
 Why does the following code not print anything? i= "hello world"

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!