-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists_dicts_task.py
More file actions
29 lines (25 loc) · 901 Bytes
/
lists_dicts_task.py
File metadata and controls
29 lines (25 loc) · 901 Bytes
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
skills = ["python", "c++", "javascript", "juggling", "running", "eating"]
cv = {}
print("Welcome to the special recruitment program, please answer the following questions:")
cv["name"] = input("name: ")
cv["age"] = input("age: ")
cv["experience"] = input("how many years of experience do you have? ")
cv["skills"] = []
num = 1
for item in skills:
print(str(num) + "-", item)
num+=1
skill1 = input("choose a skill from above: ")
skill2 = input("choose another skill from above: ")
cv["skills"]=skills[int(skill1)-1]
cv["skills"]=skills.append(int(skill2)-1)
b= False
c= False
if int(skill1) == 1 or int(skill1) == 2:
b= True
if int(skill2) == 1 or int(skill2) == 2:
c= True
if (b or c) and int(cv["age"]) >= 20 and int(cv["age"])<=40 and int(cv["experience"]) >= 1:
print("you have been accepted, {}".format(cv["name"]))
else:
print("Sorry, you have not been accepted, {}".format(cv["name"]))