Python - Standard Library Usage
You want to generate a dictionary where keys are numbers from 1 to 5 and values are random integers between 10 and 20. Which code correctly does this?
i as key and random.randint(10, 20) as value for each i in 1 to 5.random.choice(range(10, 20)) which produces integers 10-19 excluding 20, unlike randint(10,20).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions