Write a python program to input …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Related Questions
Posted by Hanni Pham 4 months, 1 week ago
- 1 answers
Posted by Priya Shukla 5 months, 2 weeks ago
- 1 answers
Posted by Kandeepan Jothivel 6 months, 3 weeks ago
- 2 answers
Posted by Manoj Kumar Manoj Kumar 7 months, 1 week ago
- 0 answers
Posted by Syedali Fathima 5 months, 3 weeks ago
- 1 answers
Posted by Hanni Pham 4 months, 1 week ago
- 0 answers
Posted by Prawar Narang 6 months, 2 weeks ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Preeti Dabral 3 years, 4 months ago
schooldict ={}
no_of_class=int(input('Enter the number of classes:'))
for x in range(1,no_of_class+1):
schooldict[x] = input('Enter the teacher names:')
print("Display:")
print(schooldict)
classId=int(input('Enter class Id:'))
if classId in schooldict:
print ("teacher name: " + str(schooldict[classId]) + "\n")
0Thank You