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?
"hello world"
def printhelloworld :
printi
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."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
