Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics Types and Branching Comparisons

Peter Jacobsen
Peter Jacobsen
2,142 Points

VSC goes to next input point after running again without entering an input.

Ok so, my problem is, that if i click run and it asks for an input without me adding an input, and i then edit it and save, then when i run it again, it goes to next input point. so i have to run it multiple times to restart script. Why and how can i change that? :)

Steven Parker
Steven Parker
216,891 Points

It would help if you show your code. Take a look at this video about Posting a Question, and perhaps also this one about sharing a snapshot of your workspace.

Peter Jacobsen
Peter Jacobsen
2,142 Points

This whole message is said with a smile, so i don't mean to be offensive in ANY way:)

I don't know if i read it in the wrong tone but it feels like you're a bit offensive? IF THATS THE CASE... well try and read my question again.. What does my code have to do with the way VSC works. Now VSC has options to edit how it should work but i need to know what file to edit and what code. So my code wouldn't help anything. Therefore it is a waste of time for you to read the code. now next time when helping, don't come out offensive, thats not a way to help people :)

IF YOU DIDN'T MEAN TO BE OFFENSIVE: I appreciate your time to try and help, but it's not my code theres something wrong with. its VSC which is a program to code, just like sublime text, or Eclipse etc. When running a program, and you see a error in your code, you edit and save the code, and run again you would expect it to start over. It does not, it goes to the next input of the script. Therefore i ask IF and HOW i can change that so it restarts the script whenever i hit "RUN SCRIPT" since its possible to edit some settings, but it requires json coding and maybe some other coding language :)

Now the first message for the offensive part, is because i don't want somebody to come and be offensive, thats not why im asking for help. If you didn't understand you could just ask me to give a further explanation.

Either way i hope you have a great day. Peace :)

Steven Parker
Steven Parker
216,891 Points

I was just providing hints in case you wanted to share your code to make it possible for someone to replicate the issue. It didn't occur to me that someone more experienced with VSC/Python might have a ready answer without seeing the issue first hand. Good luck, and happy coding!   :innocent:

1 Answer

Peter Jacobsen
Peter Jacobsen
2,142 Points

Oh, no worries, i just didn't know how to take the first comment :) and thanks :)