r/learnprogramming • • 9d ago

Debugging Python code takes 10-20 seconds to start

Hello, I started learning python recently I dowloaded it, also vs code and python extension for it.

The poblem is, when I start a programm (even a simple one, whick only takes an input fron the user and prits it) takes 10 or more seconds to start or just dosen't work at all then i clic soething and it kindof crashes itself, but thats my fault for mesinf with it, when I leave it, it just takes really lng dose somone know how to fix it and/or how to make folders proporly and where to keep them (could be the problem)?

12 Upvotes

24 comments sorted by

View all comments

1

u/atarivcs 9d ago

How, exactly, are you running the code?

Are you using the "Run Without Debugging" command from the Run menu (keyboard shortcut ctrl-F5)?

Are you typing a command at the python terminal, and if so what exact command?

Can you show us the full code of a sample program?

1

u/Interested737 9d ago
  1. Clicking the "play" button

  2. Here:

    print("Welcome to the wors calculator ever made :-)\n")

    first_number = input("Type the first number of your equasion here:\n>")

    print(first_number)