One Dict, Two Names
account = {"balance": 100}
backup = account
account["balance"] += 50
print(backup["balance"])
backup was assigned before the balance was touched. What does this print?
Sign in to answer questions and track your progress
Sign In