data = []
while True:
inp = [i for i in input("Please enter your name followed by your GPA: ").strip().split()]
if (len(inp)==1 or inp[0] == 'off'): break
data.append({'Name':(' '.join([str(i) for i in inp[:-1]])) , 'GPA':float(inp[-1])})
# print(data)
Please enter your name followed by your GPA: Kuldeep Singh 2.1
Please enter your name followed by your GPA: Kuldeep 3.1
Please enter your name followed by your GPA: Peter Smith 4.0
Please enter your name followed by your GPA: off
[{'GPA': 2.1, 'Name': 'Kuldeep Singh'},
{'GPA': 3.1, 'Name': 'Kuldeep'},
{'GPA': 4.0, 'Name': 'Peter Smith'}]