Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dictionary = {"test1":false, "test2":true, "test3":false}
- for i in dictionary:
- if dictionary[i] == true:
- match i:
- "test1":
- print("1")
- "test2":
- print("2")
- "test3":
- print("3")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement