Python Introducing Lists Meet Lists Creation

Console: python not returning anything

When I put python 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

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

Console: treehouse:~/workspace$ python3
treehouse:~/workspace$ python

It doesn't recognize that anything is in the 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 ¯_(ツ)_/¯