#!/usr/bin/python3 # Auswahl aus mehreren Fällen def f_a(): print("Decision: case a") def f_b(): print("Decision: case b") def f_c(): print("Neither a nor b") dic = { "a": f_a, "b": f_b, } print("a for function f_a") print("b for function f_b") x = input("Enter a or b: ") dic.get(x,f_c)()