Ok so I have a dictionary:
stock = {
'GOOG':520.54,
'FB': 76.45,
'YHOO':39.28,
'AMZN': 306.21,
'AAPL': 99.76,
}
I would like it to print a random number of Keys with Values (Between 2-4). Here is an example of what I did for a list to give you an idea.
items = ['Medkit', 'Water', 'Food', 'Gold',
'Ammo', 'Beer', 'LSD']
print(random.choices(population=items, k=random.randrange(2, 5)))
I dont know how to codes this to spew out something like this for a dictionary with values and keys.