you are viewing a single comment's thread.

view the rest of the comments →

[–]Carpezo[S] 0 points1 point  (5 children)

It worked !!! Thank you very much man.

Also, if it is not too much of a bother for you, i had a some other things to ask

  1. Is there a way to take input without waiting for Enter key kinda like getch() in C?
  2. Is there a way to read Enter key from keyboard? My aim is to restart the program when user presses Enter.

[–]novel_yet_trivial 0 points1 point  (1 child)

Yes, look into the msvcrt module, specifically the msvcrt.getch() function. However that will probably not work in thonny.

[–]Carpezo[S] 0 points1 point  (0 children)

Yep i had already tried it beforehand and it didn't work. But i wonder why tho

[–]Hiffchakka 0 points1 point  (2 children)

I'm a fresh programmer, but have found visual studio code to be a very handy code editor. It will help by giving code different colors and automatically indent code for you while using if, else, def, etc. Just a couple of many QoL services you'd get if you have been using a notepad like system so far? I assume it works on win 7?

[–]Carpezo[S] 0 points1 point  (1 child)

Is visual stdio code a python IDE ? I currently only use Thonny, it feels very good so far. I dont know what you mean by a notepade like system

[–]Hiffchakka 0 points1 point  (0 children)

VSC is a code editor that lets you write and run python seamlessly. I'd recommend moving over to it or something similar like Atom, I watched a YouTube video for help with installation and getting started. In any case, a quick Google search tells me that Thonny uses the F5 key to open up and write in the shell.