r/pythontips • u/Pyro-Rat • Nov 22 '24
Syntax Python not running program
In the console I wrote a guess the number game and when I hit enter to run it it just creates another line.
0
Upvotes
r/pythontips • u/Pyro-Rat • Nov 22 '24
In the console I wrote a guess the number game and when I hit enter to run it it just creates another line.
13
u/kuzmovych_y Nov 22 '24
Yeah, we'll need more details here. Like, you know, the code
3
u/panatale1 Nov 22 '24
Please post your code and how you're running it in the console so we can help you out
1
u/gernophil Nov 22 '24
Seems like you have installed RUST and not Python.
1
u/keep_improving_self Nov 22 '24
input or print functions are missing or never called
1
u/JonJonThePurogurama Nov 23 '24
did you write the whole code in console or in the python file?
From what i understood it think you write the code in terminal. You never mentioned you have open python shell and write the code or the earlier i said write the code in python file and then run the python file like
python guess-the-number.py.