Working code:
n = 5
students=[]
for num in range(n):
x=raw_input("Enter name of students: ")
students.append(x)
marks=[]
for num in range(n):
y=raw_input("Enter marks of students:")
marks.append(y)
report = raw_input("Do you want to print class report?: ")
if report == 'yes':
for i,j in zip(students, marks):
print(i,':', j)
Here, you have to use list.append, zip with loop to cycle through pairs of data and raw_input in the place of input in Python 2.x
Want to learn more about python? Come and Join: python training course
For more details, do check out..