Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
228 B

def print_match(wert):
print(f'wert={wert}')
match wert:
case 1|2:
print('1 oder 2')
case 3|4:
print('3 oder 4')
case _:
print('unbekannt')
print_match(1)
print_match(3)
print_match(5)