python
befehl = 'stop'
match befehl:
case 'start':
print('Starte')
case 'stop' | 'halt':
print('Stoppe')
case _:
print('Unbekannt') # _ ist der Standardfall (wie default in C)
Anders als switch in C braucht es kein break: Es läuft nur der passende Fall.