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.
Answers
Answered by
3
refer above attachment!
Attachments:
Answered by
3
Given:
total number of sections and class teacher’s name
To find:
A program to input total number of sections and class teacher’s name in 11th class and display all information on the output screen.
Solution:
IN Python:
Program:
No_of_sections=int(input(“enter sections”))
teachers[]
for i in range(No_of_sections):
s=input()
teachers.append(s)
print(“number of sections are”,No_of_sections)
print(“the class teachers are”)
for j in teachers:
print(j)
OUTPUT:
Enter sections 3
Ramu
Somu
Srinu
Number of sections are 3
The class teachers are
Ramu
Somu
Srinu
Similar questions