Quick actions

cmd+k|ctrl+k

Navigation

Languages

41-4

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-09T18:22:45.20409Z

Updated

2025-08-09T18:22:45.20409Z


myDictionary = {"name" : "David the Mildy Terrifying", "health": 186, "strength": 4, "equipped":"l33t haxx0r p0werz"}

for name, value in myDictionary.items():
print(f"{name}: {value}")

if (name == "strength"): 
if value > 100: # This nested if wasn't indented properly
  print("Whoa, SO STRONG")
else:
  print("Looks like you skipped leg day, arm day, chest day and, well, gym day entirely bro!")
INFO