developers constantine level junior languages java ruby python style r

 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
developers = {
'constantine': {
'level': 'junior',
'languages': ['c#', 'java', 'ruby', 'python'],
'style': 'remote'
},
'igor': {
'level': 'architector',
'languages': ['c#', 'python', 'go', 'rust'],
'style': 'office/remote',
}
}
active = True
while active:
name = input("Please enter the names (constantine/igor)")
if name in developers:
section = input("Please enter the sections (level/languages/style")
print(type(developers[name][section]))
if section in developers[name] and isinstance(developers[name][section], list):
for language in developers[name][section]:
print(language)
elif section in developers[name] and isinstance(developers[name][section], str):
print(developers[name][section])
else:
print("Please enter the correct section")
else:
print("Please fill the correct name")
if name == 'q':
active = False