Hi! Does anyone know why we need “for i in range(101)” on the following code?
It works perfectly without it, but on the hint it’s said that should be done like this… Any clue?
Import random below:
Create random_list below:
random_list = [random.randint(1,101) for i in range(101)]
Create randomer_number below:
randomer_number = random.choice(random_list)
Print randomer_number below:
Here’s a link to the exercise: