0% found this document useful (0 votes)
29 views8 pages

EMS Project File

The document contains code for an employee management system program. The program allows the user to add, view, search, and delete employee records from a list. It uses functions to handle different tasks like adding data, viewing the list, searching, and deleting records.

Uploaded by

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

EMS Project File

The document contains code for an employee management system program. The program allows the user to add, view, search, and delete employee records from a list. It uses functions to handle different tasks like adding data, viewing the list, searching, and deleting records.

Uploaded by

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

CODE

#PROJECT CODE

print("**********Employee Management System*********")

l=[]

def view_list():

for i in l:

print(i)

def add_data():

while True:

x=input("Enter employee Id:")

a=input("Enter employee Name:")

b=input("Enter Date of Birth:")

c=input("Enter employee's Email:")

d=input("Enter employee's Address:")

e=int(input("Enter employee's Mobile number:"))


l.append(x)

l.append(a)

l.append(b)

l.append(c)

l.append(d)

l.append(e)

y=input("Do you want to add more records yes/no :")

if y=='yes':

pass

else:

break

def delete_data():

Id=input("Enter employee Id to delete :")

l.clear()

def search_data():

search=input("\n enter the employee Id to search ")


for search in l:

print("Employee Id Found")

break

else:

print("Employee not found")

def end():

print("\n please enter key to exit ")

exit()

while True:

print("____________________________")

print(" ")

print("Please choose any option :")

print("\n1.Add data")

print("2.View data")

print("3.Search data")

print("4.Remove details")

print("5.exit")
ch=input("\nenter the option ")

if ch=='1':

add_data()

elif ch=='2':

view_list()

elif ch=='3':

search_data()

elif ch=='4':

delete_data()

elif ch=='5':

end()

else:

print("wrong input")

OUTPUT

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy