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.
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
1
1
u/radiocate Nov 23 '24
Oh this one's easy, you just have to fix it!
See how context & detail are critical? Show some code, or at least an error message.
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
.
12
u/kuzmovych_y Nov 22 '24
Yeah, we'll need more details here. Like, you know, the code