lundi 6 avril 2020

I am getting an error during importing random module in python? [closed]

import random
for i in range(5):
print(ramdom.randint(1, 10) )

For this code i get a error:

Traceback (most recent call last):
File "C:/Users/admin/AppData/Local/Programs/Python/Python38/Automate the boring stuff with python/printRandom.py", line 3, in
print(ramdom.randint(1, 10))
NameError: name 'ramdom' is not defined



Aucun commentaire:

Enregistrer un commentaire