Question from the Python - Fundamentals test

Print the value of a variable in a function in Python

Easy

What is the output of the following code ?

var = "I'm a global variable"
def f(var):
	print(var)
f("I'm fairly local")
Author: ThéoStatus: PublishedQuestion passed 410 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!