Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if word == "thing":
- thingy()
- elif word == "stuff":
- stuffy()
- else:
- thingstuff()
- #then there's this...
- {(word=="thing"):thingy, (word=="stuff"):stuffy, (word not in "thingstuff"):thingstuff}[True]()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement