this post was submitted on 17 Jul 2023
14 points (93.8% liked)

Python

6229 readers
9 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

October 2023

November 2023

PastJuly 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

ok, so I've just started to learn python so very sorry for being a absolute dumbell. I'm doing some test stuff and noticed when I build and run my programs, they run yes, but they don't actually do anything. I've made sure to set the right language in sublime editor. perhaps it's something I've done wrong? when the console prints out the first question, i type in a number, but then nothing else happens. it seems to only print the first line and that's it. it's supposed to prompt the "second:" but it does nothing. I would really appreciate your help. thank you.

you are viewing a single comment's thread
view the rest of the comments
[–] Crul 3 points 1 year ago (1 children)

This will not fix the problem, but will give you more info: save the file to disk and try running it outside of Sublime. Open a command line and run ``python your_file.py`. If it works, that will tell you that the problem is related to Sublime. If it fails like in Sublime, then there is something weird happening... and I have no idea what that could be.

[–] [email protected] 2 points 1 year ago (1 children)

it works!, oh but that must mean there is something wrong with sublime then.

[–] Crul 1 points 1 year ago (1 children)

that must mean there is something wrong with sublime then.

Yeah, sorry, I cannot help with that, never used Sublime.

But at least you can use the command line until you figure that out. Not ideal, but better than nothing Β―\_(ツ)_/Β―.

[–] [email protected] 2 points 1 year ago (1 children)

ah thank you, i'd never figured it out! well, I guess i'll just find some other software to view it then. but yeah thanks!

[–] [email protected] 0 points 1 year ago

Use VSCode or PyCharm. It's what most people use anyways.

Give both a try. VSCode is lightweight and a bit more "manual". PyCharm is a full IDE with advanced features but sometimes it can be too much for a small script.