In: Computer Science
#drop a comment if anything is wrong
#------------------------------------------
#method for printing and looping
def printRoutine(routine):
for exercise in routine:
print("I did",str(routine[exercise]), exercise)
print("")
routine={"bench press":8, "pull ups":8,"deadlifts":5,"squats":5,"crunches":50}
printRoutine(routine)
#increasing value of a key
routine["crunches"]=routine["crunches"]+10
printRoutine(routine)
#adding a new key-value pair
routine["Good mornings"]=10
printRoutine(routine)
#removing a key
routine.pop("crunches")
printRoutine(routine)
#------------------------------------------------------