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.
20 lines
333 B
20 lines
333 B
10 months ago
|
|
||
|
def print_match(name):
|
||
|
|
||
|
print(f'name={name}')
|
||
|
match name:
|
||
|
case 'Lisa'|'Ralph'|'Janey':
|
||
|
print('zweite Klasse bei Ms. Hoover')
|
||
|
case 'Bart'|'Milhouse'|'Nelson':
|
||
|
print('vierte Klasse bei Ms. Krabappel')
|
||
|
case _:
|
||
|
print('unbekannt')
|
||
|
|
||
|
|
||
|
print_match('Lisa')
|
||
|
print_match('Milhouse')
|
||
|
print_match('Homer')
|
||
|
|
||
|
|
||
|
|