InterviewSolution
Saved Bookmarks
| 1. |
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. |
|
Answer» 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] |
|