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 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$

Eldin Guzin
Eldin Guzin
6,010 Points

Can you attach your code, please

meeting.py

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

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

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. 🤦🏻‍♂️

Eldin Guzin
Eldin Guzin
6,010 Points

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