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 trialDerek Graham Chema
845 PointsProgram ends with TypeError: sequence item 3: expected str instance, list found
attendees = ["Ken", "Alena", "Treasure"] attendees.append(["Ashley"]) attendees.extend(["James", "Guil"]) optional_invitees = ["Ben J.", "Dave"] potential_attendees = attendees + optional_invitees print("There are", len(potential_attendees), "potential attendees currently") to_line = ", ".join(attendees) cc_line = ", ".join(optional_invitees)
print("To: " + to_line) print("Cc: " + cc_line)
1 Answer
Derek Graham Chema
845 PointsSorry, found the error, in attendees.append("Ashley") - I had (["Ashley"]), I was basically creating a new list, in the list if I understand correctly.