2
I need help with the following:
- I have a variable that generates random integer numbers from (0 to 400).
- In a given number of executions, I wish(m) to be displayed(s) the value(s) and the position(s) of the value(s) less(s) than 100.
- I have a code (see below) that I am working on, but it is not acting properly.
Where am I going wrong?
My code
from random import randint
aleatorio = randint(0,400)
maximo = 100
for i in range(1,maximo + 1):
if aleatorio < 100:
print (aleatorio[i])
All in all how many executions do you want? You weren’t clear on that
– Miguel