Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Abdul Kader
Abdul Kader
3,504 Points

workspace not working

my workspace doesn't work as in the videos taught by Kenneth during python basics.

please advise.

same here but when i use visual studio code my program is running, i am currently on RSVP app JavaScript. how do i fix it? because i cant keep on downloading zipfiles over and over. please help, thanks in advance.

4 Answers

Frank Bloemendal
Frank Bloemendal
7,326 Points

To locate the problem, could you tell us the difference between yours and the video?

Abdul Kader
Abdul Kader
3,504 Points

It doesn't go into the console when I input "python f'ilename'.py"

it repeats the same line next.

Hope this clarifies.

jayj
jayj
2,515 Points

Can you paste the exact line you are typing in the console?

For example, if I have a hello_world.py file in my workspace containing

print("Hello World")

To call it, I will then proceed to the console below and type.

python hello_world.py

This should give me the result:

"Hello World"

Make sure you have some kind of print or return in your code, otherwise its just going to return nothing!

If I understand you correctly, the problem is that when you try to type into the command line no input appears? I've had this problem as well. Workspaces is kind of janky and buggy, at least it has been for me. Sometimes when writing code in the editor and then trying to switch to the command line, it seems to become confused as to where the cursor should be.

This was my solution; I would scroll down to the bottom of the document I was editing and click on the empty line at the bottom of my script. Once sure the cursor was placed at the bottom of the document I would then click over the command line and try to enter my text. Usually this worked though sometimes i would have to do it a few times. I'm not sure what causes this issue but it seems to be a problem of transistioning between the editor and the command line, one of many bugs i found while working with workspaces. I recommend working offline if you can.

Hope that helps.