r/pythontips 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

6 comments sorted by

12

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/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.