-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrol-list-personnel.py
50 lines (41 loc) · 1.26 KB
/
control-list-personnel.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
personnel = []
price = []
def addpersonnel():
x = input("enter the name of the new personnel :")
if x in personnel:
print("personnel already exists")
else:
h = input("enter the price hqoq :")
personnel.append(x)
price.append(h)
print(personnel)
def statsper():
x = input("enter the name of personnel :")
if x not in personnel:
print("personnel does not exist")
else:
print("personnel stats name : " + x + "price is " + price[personnel.index(x)])
def removepersonnel():
x = input("enter the name of the remove personnel :")
if x not in personnel:
print("personnel does not exist")
else:
personnel.remove(x)
personnel.
price.remove(personnel.index(x))
print(personnel)
while True:
quest = input("enter what you do? remove ,add ,stats and exit : ")
if quest == "remove":
removepersonnel()
elif quest == "add":
addpersonnel()
elif quest == "stats":
statsper()
elif quest == "exit":
print("Thank you for using fucking code amirwopi this program barde dari nigger")
break
elif quest == "":
print("please enter a valid input")
else:
print("please kos khol bazi dar nayar")