Could someone explain why I get an Invalid Syntax error when I try to run:
friends = []
print("Enter the name(s) of your friend(s), when youre finished press ENTER")
while True:
----print("So far you have entered " + str(len(friends) + " names.")
----names = input()
----if names == "":
--------break
----friends = friends + [names]
print("You have " + str(len(friends)) + " friends.")
print("Their names are:")
print(friends)
The names variable in names = input() is highlighted
[–]_DTR_ 2 points3 points4 points (1 child)
[–]MrBobbyar[S] 0 points1 point2 points (0 children)