0% found this document useful (0 votes)
13 views2 pages

Syllabus

The document contains code for a school management system that allows viewing syllabus by class. It defines functions for displaying a syllabus menu and reading a syllabus text file for a given class.

Uploaded by

S k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Syllabus

The document contains code for a school management system that allows viewing syllabus by class. It defines functions for displaying a syllabus menu and reading a syllabus text file for a given class.

Uploaded by

S k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import main

def syllabus1():
print("----------------------------------------------------------------------")
print(" Syllabus")
print("----------------------------------------------------------------------")
print()
print("1.View syllabus")
print("2.Exit")
ops = int(input("Enter option(1,2)-->"))
if ops == 1:
syllabusv()
else:
main.main_1()

def syllabusv():
cl = int(input("Enter class:"))
if cl == 1:
print("Syllabus for class 1 is:")
ss = open(r"C:\Users\Manoj K\PycharmProjects\School Management
System\ss1.txt", "r")

#"C:\Users\Manoj K\PycharmProjects\School Management System\ss1.txt" your address


#for this file(ss1.txt)

ssr = ss.read()
print(ssr)
ss.close()
op = int(input("press 1 to exit>>>"))
if op == 1:
syllabus1()
else:
print("invalid entry !!!!")

if cl == 2:
print("Syllabus for class 2 is:")
if cl == 3:
print("Syllabus for class 3 is:")
if cl == 4:
print("Syllabus for class 4 is:")
if cl == 5:
print("Syllabus for class 5 is:")
if cl == 6:
print("Syllabus for class 6 is:")
if cl == 7:
print("Syllabus for class 7 is:")
if cl == 8:
print("Syllabus for class 8 is:")
if cl == 9:
print("Syllabus for class 9 is:")
if cl == 10:
print("Syllabus for class 10 is:")
if cl == 11:
print("Syllabus for class 11 is:")
if cl == 12:
print("Syllabus for class 12 is:")
else:
print("Invalid entry !!!!")
syllabusv()

You might also like