Using Dictionary As Switch Case In Python Got Error Str

Using Dictionary As Switch Case In Python Got Error Str