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)]
What lesson is this from? Please post a link. Thanks.
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.
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