I tried to like below, but it doesn't work.
'''
students = []
while True:
new = list(input("Name, Grade, Number: "))
student.add(new)
if not new:
break
'''
It doesn't show any result. I can't input anything.
Join Stack Overflow to learn, share knowledge, and build your career.
I tried to like below, but it doesn't work.
'''
students = []
while True:
new = list(input("Name, Grade, Number: "))
student.add(new)
if not new:
break
'''
It doesn't show any result. I can't input anything.
Try it without triple quotes:
students = []
while True:
new = list(input("Name, Grade, Number: "))
students.add(new) # typo here
if not new:
break