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 Introducing Lists Meet Lists Creation

Console: python meeting.py not returning anything

When I put python meeting.py into my console, I'm not getting anything to return. It just has the typical console text: treehouse:~/workspace$

Can you attach your code, please


attendees = ['ken', 'nick', 'jess']
print("there are", len(attendees), "attendees")

Console: treehouse:~/workspace$ python3 meeting.py
treehouse:~/workspace$ python meeting.py

It doesn't recognize that anything is in the meeting.py file. I've tried python3 and python. I can open the Python terminal, but when trying to have it read files, the workspace doesn't recognize it.

1 Answer

Wow, I'm so used to AutoSave in VSCode, that I didn't realize my issue was that I wasn't saving before running it in the console. 🤦🏻‍♂️

lol, at least you figured it out ¯_(ツ)_/¯