Code:
def markbook_list():
names = []
marks = []
while True:
name = raw_input("Name: ")
if name == "exit":
break
elif name == "print":
print "Name" + " " + "Mark"
for x in range(len(names)):
print names[x] + " " + marks[x]
else:
names.append(name)
mark = raw_input("Mark: ")
marks.append(mark)
I already did number 1 as you can see.
How would one change the code so that it prompts the user for multiple marks per student?
Comment