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
2,504 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
2,504 Points

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