Write a program to input total number of sections and class teacher’s name in 11th class and
Write a program to input total number of sections and class teacher’s name in 11th class and display all information on the output screen.
4 views
1 Answers
class xi = diet ( )
n = input (“Enter total number of section in xi class”)
i = 1 while i < = n :
a = raw_input (“enter section”)
b = raw input (“enter class teacher name”)
classxi[a] = b i = i + 1
print “Class”, “\t”, “Section”,
\t„, “Teacher Name”
for i in classxi :
print “XI”, “\t”, i, “\t”, class xi[i]
4 views
Answered