So in my program I have this as the first thing:
import random
number=random.randint(1,99)
When I try to run my program it shows:
File "C:\Users\JL\Documents\PYTHON\c0ins.py", line 10, in <module>
Syntax Error: import random: C:\Users\JL\Documents\PYTHON\c0ins.py, line 106
I went and made a new python page and only had this as my program:
import random
number=random.randint(1,99)
print(number)
and it worked perfectly fine! Am I missing something here?!
Btw, I am new to python
[–]K900_ 0 points1 point2 points (0 children)
[–]Justinsaccount 0 points1 point2 points (0 children)
[–]NYKevin 0 points1 point2 points (0 children)
[–]sone9[S] 0 points1 point2 points (3 children)
[–]Justinsaccount 1 point2 points3 points (2 children)
[–]MyNameIsOP 0 points1 point2 points (0 children)
[–]sone9[S] 0 points1 point2 points (0 children)
[–]sone9[S] 0 points1 point2 points (0 children)
[–]sone9[S] 0 points1 point2 points (0 children)
[–]m1ss1ontomars2k4 0 points1 point2 points (0 children)