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

Stephen Lamm
Stephen Lamm
6,244 Points

Why is my REPL not working properly?

Whenever I try to "print(attendee)" nothing happens.

" treehouse:~/workspace$ python -i meeting.py There are 8 potential attendees currently

attendees ['Ken', 'Alena', 'Treasure', 'Ashley', 'James', 'Guil'] for attendee in attendees: . . . print(attendee) . . . " <--- instead of getting the list of attendees, I'm getting these three dots.

1 Answer

It is allowing you to enter more lines in your for loop. To execute instead of Enter use Ctrl+Enter in Windows and probably Cmd+Enter for Mac

Stephen Lamm
Stephen Lamm
6,244 Points

Thanks for the reply! Turns out I just needed to press Enter a second time, I was never instructed to do that in the lesson, or any previous lesson, but I worked it out, thanks again!