What;s wrong with my code?

nName = input (“student’s name”)
nAge = input (“student’s age”)

while 1 is 1:
nGoAgain = input ("do you want to add another student ? "):
if nGoAgain == “yes”:
input (“student’s name”)
input (“student’s age”)

nRegister = [(nName),(nAge)]
print (nRegister)

1 Like

What lesson is this from? Please post a link. Thanks.


Side note:
If you have more questions in the future, it’s good to know how to format your code in the post so that it’s easier for others to offer their help. You can refer how to format code here.

For the right advice or code review, share the lesson name, the webpage link, the step you are struggling on, also the code you tried and sometimes the error message that pops up. :thinking:

All of this information is really helpful for you to mull over and it introduces us to the problem so we can point you in the right direction in a quickly :handshake: :tada: