Which version of code will produce an Indentation Error when it is run?
NOTE: The • symbol represents a single space.
def my_function():
print("Hello") You got it! The second line needs to be indented if it is to be executed when my_function() is called.
Which version of code will output "This will run"?
def my_function():
••••#This is my function
••••print("This will run")
my_function()You got it!
In which version of code, will you see "This will run" printed?
def my_function():
••••a = 3
••••if a > 2:
••••••••print("This will run")
my_function()You got it!