Q:

Exit from while loop upon hitting enter key

I need to take multiple inputs from user and exit from the loop when the user hits the enter key. 
this is what i am trying to do.
while True:
    data = input("Enter name age and score:\t").split(",")
    if data==' ':
         break
    else:
         continue

A:

try this
data = input("Enter name age and score:")
while data.strip() != '':
    data = input("Enter name age and score:") 

