20 lines
333 B
Python
20 lines
333 B
Python
|
|
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')
|
|
|
|
|
|
|