0
Help fix this code to use list comprehension to generate 50 random marks import random randmarks=[RandInt(100) for i in range(50)]
This is code to generate random numbers in list
1 Answer
0
I fixed it. Multiple errors above. Find the corrected code below
import random
randmarks=[random.randint(0,100)for i in range(50)]
for i in range(50):
print(i,randmarks[i])