Programmeren in Python/Conditionele statements: verschil tussen versies
Verwijderde inhoud Toegevoegde inhoud
Geen bewerkingssamenvatting |
|||
Regel 134:
def hello():
print ("Hello")
def bye():
print ("Bye")
def hola():
print ("Hola is Spanish for Hello")
def adios():
print ("Adios is Spanish for Bye")
# Notice that our switch statement is a regular variable, only that we added the function's name inside
|