Stuck on a lesson 7/13 Python


#1

It says that the variable spam must contain value true

def spam ():
spam = True

def eggs ():
eggs = False


#2

why do you use functions here? I wouldn't recommend

two problems: function don't execute unless called, you never call the function so they don't execute, even when the function are called, the variable created have a local scope.

Recommendation: remove the functions, just declare the variable


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.