![]() |
|
[Python] Python Account Generator/Number Generator - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Python Account Generator/Number Generator (/showthread.php?tid=5137016) |
Python Account Generator/Number Generator - Snowdrop14 - Jan 17, 2016 Hello I need Help im trying to make a generator and for some reason i get a santax error when i use import random here is my code Code import random* - SIM-1866423 - Jan 17, 2016 What's the error output ? * - lockhead - Jan 17, 2016 If you're using Python 3.x you have to use print as a function, that means you enclosing your output in parenthesis like so: print("hello world") * - Intr0nX - Jan 18, 2016 also make sure that the name of the script isnt "random.py". * - horrorland1 - Jan 19, 2016 import random print (random.randint(1,1000)) |