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

Python

6360 readers
6 users here now

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

πŸ“… Events

PastNovember 2023

October 2023

July 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
[–] [email protected] 2 points 1 year ago (3 children)

I can't see anything wrong with your code other than a typo in line 3 (fist should be first), and the fact that you use sum (a predefined function) as a variable. The latter should not cause any issues, unless you want to use that function at a later point in time.

Forgive me for asking a basic question, but it does sound like you're not pressing the enter key after entering your first number.

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

I believe I press enter after inputting. but let me try again to make sure.

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

yeah i did, but still nothing.

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

That's weird. Have tried running it without the help of sublime?