Programmeren in Python/Conditionele statements (bewerken)
Versie van 23 apr 2021 11:34
, 1 jaar geledengeen bewerkingssamenvatting
(→elif) |
Geen bewerkingssamenvatting |
||
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
|