Quick actions

cmd+k|ctrl+k

Navigation

Languages

41-1

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-09T18:15:07.486663Z

Updated

2025-08-09T18:15:07.486663Z

myDictionary = {"name" : "Ian", "health": 219, "strength": 199, "equipped": "Axe"}
for name,value in myDictionary.items():
  print(f"{name}:{value}")
  if (name == "strength"):
    print("Whoa, SO STRONG!")
INFO