Nov-22-2021, 01:29 PM
(This post was last modified: Nov-22-2021, 08:00 PM by Larz60+.
Edit Reason: added bbcode tags
)
Can anyone help please i'm probably off track
# Make a list called mates, containing the names Margot, Kathryn and Prisila
# code the for loop using the variable friends.
# set another variable invitation so that when printed it outputs Hi friend(variable). Please come to my party on Saturday!
# Make a list called mates, containing the names Margot, Kathryn and Prisila
# code the for loop using the variable friends.
# set another variable invitation so that when printed it outputs Hi friend(variable). Please come to my party on Saturday!
mates = ["Margot", "Kathryn", "Prisila"] for friend in mates: print(friend) print("Hi"(friend)"please come to the party")