print statements will always help:
alpha literals must be enclosed in single or double quotes
you create a random number in line 3, and then proceed to print it 101 times.
once on line 4
and then 100 times on lines 7 & 8
the only number that varies is 'i', but you never use it.
import random number=random.randrange(1500)+1 print(f"number: {number}") letter=['a','b','c','d','e','f','g','h'] for i in range(100): print(number)outout:
Output:850
850
850
... # 101 times
So:alpha literals must be enclosed in single or double quotes
you create a random number in line 3, and then proceed to print it 101 times.
once on line 4
and then 100 times on lines 7 & 8
the only number that varies is 'i', but you never use it.