this post was submitted on 01 Jul 2023
5 points (100.0% liked)

Programming Humor

3252 readers
2 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 2 years ago
MODERATORS
 

If only string maps were known to human kind :)

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 2 years ago

How about a dict[int, str], which holds your case and newscript?

[–] [email protected] 1 points 2 years ago

Maps? Could get away with an array!

[–] [email protected] 1 points 2 years ago

Clearly the issue is that they are using switch cases instead of if statements /s