Hi I'm trying to work on this problem. I know my code is wrong but I don't know how to fix it. If anyone could help, that would be great, thank you so much!
Write and test a function that asks for the names of all the members in a club. However, we don't know how many members are actually in the club. Use a “while-loop” which will simply repeat until all the member's names have been entered. How will the “while-loop” know all the member's names have been entered?
def club():
members = []
done = False
while (not done):
mem = input("enter name")
if name == "done":
return False
else:
return (members.append(mem)
File "main.py", line 10
^
SyntaxError: unexpected EOF while parsing
memvariable, but check thenameone. As forSyntaxError:error, without the complete code (and pointing to line 10) we cannot help you.