Hello, I am having trouble getting my code to work. I am attempting to lookup a random key:value and then later in the code I would like to subtract a number from the value of that key:value that was generated randomly. This is what I have so far.
import random fruit = {'apples' : 10, 'oranges' :20} random_fruit = random.choice(list(fruit.items())) print(random_fruit) random_fruit -= 3 print(random_fruit)