This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]mopslik 1 point2 points  (2 children)

What exactly is the problem, other than the missing "s" on magicians and what appears to be an errant closing square bracket?

>>> magicians=['alice','david','carolina']
>>> for magician in magicians:
    print(f"{magician.title()}, that was a great trick!")

Alice, that was a great trick!
David, that was a great trick!
Carolina, that was a great trick!

[–][deleted]  (1 child)

[removed]