You are on page 1of 40

OVERVIEW OF PYTHON

Python is an interpreted, high-level, general-purpose


programming language. Created by Guido van Rossum
and first released in 1991, Python's design philosophy
emphasizes code readability with its notable use of
significant whitespace. Its language constructs and object-
oriented approach aim to help programmers write clear,
logical code for small and large-scale projects.

Python is dynamically typed and garbage-collected. It


supports multiple programming paradigms, including
procedural, object-oriented, and functional programming.
Python is often described as a "batteries included" language
due to its comprehensive standard library.

In 1999, Van Rossum submitted a funding proposal


to DARPA called "Computer Programming for Everybody", in
which he further defined his goals for Python:

• An easy and intuitive language just as powerful as major


competitors.

• Open source, so anyone can contribute to its develop-


ment .

• Code that is as understandable as plain English.

• Suitability for everyday tasks, allowing for short develop-


ment times.
1/40
Python has grown to become a popular programming
language. In 2018, it was the third most popular language
on GitHub, a social coding website,
behind JavaScript and Java. According to a programming
language popularity survey it is consistently amongst the top
10 most mentioned languages in job postings. Furthermore,
Python is consistently[ in the top 10 most popular languages
according to the TIOBE Programming Community Index.

ADVANTAGES

1)Easy to use.

2)Expressive language.

3)Interpreted language.

4)Portable language.

5)Free and open source.

6)Variety of applications.

►Scripting

►Web applications

►Game development , etc.,.

2/40
DISADVANTAGES

1)Not the fastest language.

2)Lesser libraries than C , Java.

3)Not strong on type binding.

4)Not easily convertible.

3/40
ABSTRACT

This project aims at creating a school student management


system. This project provides options for creation of students,
deletion of students, alteration of details, management and
much more. This project is made for administrational

purposes.

4/40
HARDWARE AND SOFTWARE REQUIREMENTS
HARDWARE:

• Personal computer

• Keyboard

• Mouse

• Hard drive

SOFTWARE:

APPLICATIONS

• Requires Python IDLE version 3.6 or greater.

OPERATING SYSTEM

• Compatible with Windows Vista, 7, 8, 10, Linux,


Mac OS.

MEMORY

• Size : 18KB

• Size on disk : 20KB

5/40
DICTIONARIES USED

1)STUDENT

►KEY – adm

►VALUES – sname , cls ,sec ,mob.

2)LUN

►KEY – adm

►VALUES – sname , cls ,sec ,mob.

3)TRAN

►KEY – adm

►VALUES – sname , cls ,sec ,mob.

4)FEES

►KEY – adm

►VALUES – sname , cls ,sec ,mob.

5)GRP

►KEY – amm

►VALUES – sname , cls ,sec ,mob, gr.

6/40
MODULES

1)ADD STUDENT

This system is used by the user to add new admission of


students into the student dictionary.

2)STUDENT SEARCH

This choice asks the user to enter the admission code of the
student and displays the details regarding the student.

3)TRANSPORT DETAILS

It displays the details of the students who are availing school


transport and also calculates the total amount collected
from transport facilities.

4)LUCH DETAILS

It displays the details of the students who are availing school


lunch and calculates the total cost of lunch per day.

5)FEE DETALIS

This module shows the list of students who have not paid the
fees and asks if the management wants to send a warning
message to the student or not.

7/40
6)GROUP ALLOTMENT

It is based on the class 10 group allotment to students on the


basis of their board exam marks. This allots the chosen group
to the student if he/she belong only to class 10.

And stores the details in a separate dictionary.

7)UPDATE

There are four choices under this module.

►REMOVE STUDENT FROM UNPAID

It updates the fees dictionary and removes the student from


it who have paid the fees.

►STUDENT NAME UPDATE

This is used to change the name of the student present in all


the dictionaries created in the project.

►REMOVE STUDENT FROM TRANSPORT

This module removes the student from the transport


dictionary if the student has pulled off from the school
transport facility.

►REMOVE STUDENT FROM LUNCH

This module is used to remove the student from the lunch


dictionary if the student doesn’t want school lunch.
8/40
►ADD STUDENT TO LUNCH

The students who wish to get school lunch are added in this
module.

►ADD STUDENT TO TRANSPORT

The students who wish to get school transport are added in


this module.

►ADD STUDENT TO UNPAID

This adds the student who have not paid the fees to the fees
dictionary .

8)REMOVE STUDENT

This module have been created to remove the student from


all the existing dictionaries if the student has taken TC from
the school administration.

9)EXIT

This marks the end of the program. It thanks the user for
using the student database management system.

9/40
SOURCE CODE
student={}

lun={}

tran={}

fees={}

grp={}

print('Welcome To School Management System!')

cha=0

ch=0

print('''1)Add Student

2)Student search

3)Transport details

4)Lunch details

5)Fee details

6)Group allotment

7)Update

8)Remove student

9)Exit ''')

print()

10/40
while cha!=9:

print()

cha=int(input('Enter your choice : '))

if cha==1:

print('Student Creation')

n=int(input('Enter no. of students : '))

for i in range(n):

print()

adm=int(input('Enter Admin no. :'))

snam=input('Enter name : ')

cls=input('Enter class : ')

sec=input('Enter section : ')

mob=input('Enter mobile no. : ')

ln=input('Should the student be provided with lunch?:')

tr=input('Does the student need transport service?:')

fee=input('Has the fees been paid??:')

student[adm]=[snam,cls,sec,mob]

if 'yes' in ln:

lun[adm]=[snam,cls,sec,mob]

else:

pass

if 'yes' in tr:

tran[adm]=[snam,cls,sec,mob]

else:

pass

11/40
if 'no' in fee:

fees[adm]=[snam,cls,sec,mob]

else:

pass

print('Student Creation completed!')

print('Student Details')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

for i in student:

x=student[i]

print(i,end="\t")

for j in x:

print(j,end="\t")

print()

print()

elif cha==2:

adm=int(input('Enter the admcode:'))

if adm in student:

print('Student found')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

x=student[adm]

print(adm,end='\t')

12/40
for j in x:

print(j,end='\t')

print()

else:

print("Student not found!")

elif cha==3:

print("Details of students availing transport")

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

for i in tran:

x=tran[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print()

a=float(len(tran)*1500)

print('Total amount from transport : ',a)

elif cha==4:

print('Details of students availing lunch')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

for i in lun:

13/40
x=lun[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

s=float(len(lun)*60)

print('Total cost for lunch per day:',s)

elif cha==5:

print('Details of students with fees pending')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

for i in fees:

x=fees[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print('Total unpaid fees:',float(len(fees)*20000))

warn=input('Do you want to send warning message to the above students? : ')

if warn=='yes':

print('The message has been successfully sent!')

else:

print('No warning has been sent!')

elif cha==6:

14/40
n=int(input('Group allotment for how many students:'))

for i in range(n):

print()

amm=int(input('Enter the admcode:'))

board=int(input('Enter the mark scored by the student in the board exam:'))

cls=int(input('Enter the class of the student:'))

snam=input('Enter the name of the student:')

mob=input('Enter the mobile no of the student:')

if cls==10:

if board<=500 and board>=450:

print('Available groups--1)Biology,2)Computer Science,3)Commerce,4)Humanities')

print()

gr=int(input('Enter the group to be chosen :'))

if gr==1:

sec='A'

grp[amm]=[snam,cls,sec,mob,gr]

elif gr==2:

sec='B'

grp[amm]=[snam,cls,sec,mob,gr]

elif gr==3:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

elif gr==4:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

15/40
else:

print("Invalid choice!")

elif board<450 and board >=400:

print('Available groups--2)Computer Science,3)Commerce,4)Humanities')

print()

gr=int(input('Enter the group you wish to choose:'))

if gr==2:

sec='B'

grp[amm]=[snam,cls,sec,mob,gr]

elif gr==3:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

elif gr==4:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

else:

print("Invalid choice!")

elif board>=350 and board<400:

print('Available groups--3)Commerce,4)Humanities')

print()

gr=int(input('Enter the group you wish to choose:'))

if gr==3:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

16/40
elif gr==4:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

else:

print("Invalid choice!")

elif board<350 and board>300:

print('Available groups--4)Humanities')

print()

gr=int(input('Enter the group you wish to choose:'))

if gr==4:

sec='C'

grp[amm]=[snam,cls,sec,mob,gr]

else:

print("Invaild choice!")

else:

print('Group not alloted due to insufficient score!')

else:

print('Class is not 10!')

print('Groups successfully alloted for all the students!')

print('Group Details')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t\t grp')

print('-----------------------------------------------------------------------------')

for i in grp:

x=grp[i]

17/40
print(i,end="\t")

for j in x:

print(j,end="\t")

print()

print()

elif cha==7:

print('''1)Remove student from unpaid

2)Student name update

3)Remove student from transport

4)Remove student from lunch

5)Add student to transport

6)Add student to lunch

7)Add student to unpaid''')

print()

while ch!=7:

print()

ch=int(input('Enter your choice : '))

if ch==1:

adm=int(input('Enter the admin no. of the student to be removed from unpaid : '))

if adm in fees:

del fees[adm]

print('The student has been successfully removed from unpaid!')

print()

print('Details of students with fees pending')

print('-----------------------------------------------------------------------------')

18/40
print('Admin\t Name\t Class\t Sec\t Mob\t ')

print('-----------------------------------------------------------------------------')

for i in fees:

x=fees[i]

print(i,end='\t')

for j in x:

print(j,end="\t")

print()

print()

else:

print('The student has paid the fees!')

elif ch==2:

adm=int(input('Enter the admin no. of the student : '))

cls=input("Enter the class of the student : ")

sec=input("Enter the section of the student : ")

mob=input("Enter the mobile no. of the student : ")

if adm in student:

snam=input('Enter the new name of the student : ')

student[adm]=[snam,cls,sec,mob]

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

for i in student:

x=student[i]

print(i,end='\t')

19/40
for j in x:

print(j,end='\t')

print()

print()

else:

print("Student not found!")

elif ch==3:

adm=int(input('Enter the admin no.of the student who does not require transport :'))

if adm in tran:

del tran[adm]

a=float(len(tran)*1500)

a=a-1500

print('The student has been successfully removed from transport facility!')

print()

print('Details of students availing transport')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t')

print('-----------------------------------------------------------------------------')

for i in tran:

x=tran[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print()

20/40
print('the total cost from transport is:',a)

else:

print("Student not found!")

elif ch==4:

adm=int(input('Enter the admin no.of the student who does not require lunch :'))

if adm in lun:

del lun[adm]

print('The student has been successfully removed from school lunch!')

s=float(len(lun)*60)

s=s-60

print('Details of students availing school lunch')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t ')

print('-----------------------------------------------------------------------------')

for i in lun:

x=lun[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print()

print("Total cost for lunch per day : ",s)

else:

print('Student already not availing lunch!')

elif ch==5:

21/40
adm=int(input("Enter the Adm no. of the student : "))

snam=input("Enter the name of the student : ")

cls=input("Enter the class of the student : ")

sec=input("Enter the section of the student : ")

mob=input("Enter the mobile no. of the student : ")

if adm in student:

tran[adm]=[snam,cls,sec,mob]

print("The student has been successfully added to transport!")

print("Details of students availing transport")

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t ')

print('-----------------------------------------------------------------------------')

for i in tran:

x=tran[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print()

else:

print('Student not found!')

elif ch==6:

adm=int(input("Enter the Adm no. of the student : "))

snam=input("Enter the name of the student : ")

cls=input("Enter the class of the student : ")

22/40
sec=input("Enter the section of the student : ")

mob=input("Enter the mobile no. of the student : ")

if adm in student:

lun[adm]=[snam,cls,sec,mob]

print("The student has been successfully added to lunch!")

print("Details of students availing lunch")

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t ')

print('-----------------------------------------------------------------------------')

for i in lun:

x=lun[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print()

else:

print('Student not found!')

elif ch==7:

adm=int(input("Enter the Adm no. of the student : "))

snam=input("Enter the name of the student : ")

cls=input("Enter the class of the student : ")

sec=input("Enter the section of the student : ")

mob=input("Enter the mobile no. of the student : ")

if adm in student:

23/40
fees[adm]=[snam,cls,sec,mob]

print("The student has been successfully added to unpaid!")

print("Details of students with fees pending")

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t ')

print('-----------------------------------------------------------------------------')

for i in fees:

x=fees[i]

print(i,end='\t')

for j in x:

print(j,end='\t')

print()

print()

else:

print('Student not found!')

elif cha==8:

adm=int(input('Enter the admin no. of the student : '))

amm=int(input('Enter the admin no. of the student : '))

wan=input('Are you sure to delete the student from all the records? : ')

if wan=='yes':

if adm in student:

del student[adm]

else:

print('Student not found!')

if adm in fees:

24/40
del fees[adm]

else:

pass

if adm in tran:

del tran[adm]

else:

pass

if adm in lun:

del lun[adm]

else:

pass

if amm in grp:

del grp[amm]

else:

pass

print('The student has been removed successfully!')

print('The transfer certificate has been issued!')

print('Student Details')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t ')

print('-----------------------------------------------------------------------------')

for i in student:

x=student[i]

print(i,end="\t")

for j in x:

25/40
print(j,end="\t")

print()

print()

print()

print('Group Details')

print('-----------------------------------------------------------------------------')

print('Admin\t Name\t Class\t Sec\t Mob\t grp')

print('-----------------------------------------------------------------------------')

for i in grp:

x=grp[i]

print(i,end="\t")

for j in x:

print(j,end="\t")

print()

print()

else:

print('Deletion did not take place!')

elif cha==9:

print('Thank you for using student database management system')

else:

print("Invalid choice")

print()

26/40
OUTPUT

27/40
28/40
29/40
30/40
31/40
32/40
33/40
34/40
35/40
36/40
37/40
CONCLUSION
Thus, the program School student Management has been
executed successfully.

SHORTCOMINGS :

• In this management system, every alteration has to be


carried out manually by the user, which results in the
lack of efficiency.

• There can be data mismatch and logical errors.

38/40
FUTURE ENHANCEMENT
This project is just a sketch of a professional school student
management system and is just a rough idea. The
possibilities and requirements of a school student
management system is vast and ever-growing. This project
can be uplifted and refined by adding many modules which
makes it catch up with the requirement factor of a school.
As Python offers a large number of built-in functions, this
project can be enhanced even more by shortening its
length and working on its efficiency. Overall, this project is
an arena for endless enhancements, developments, and
possibilities.

39/40
WEBLIOGRAPHY / BIBLIOGRAPHY

►Computer Science with Python by Sumita Arora.

►https://en.wikipedia.org/wiki/Python_(programming_lang
uage).

40/40

You might also like