Last active
May 29, 2021 15:45
-
-
Save ceaksan/89b0523676b5ccf8e4fe12e2489a396a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cv = {} | |
cv[0] = {'name': 'John', 'surname': 'Doe', 'title': 'Manager', 'department': 'Sales', 'salary': 10000, 'age': 34} | |
cv[1] = {'name': 'Robin', 'surname': 'Hood', 'title': 'Manager', 'department': 'Marketing', 'salary': 13000, 'age': 30} | |
cv[2] = {'name': 'Robin', 'surname': 'Chadler', 'title': 'Specialist', 'department': 'Marketing', 'salary': 10500, 'age': 27} | |
cv[3] = {'name': 'Abigail', 'surname': 'Brand', 'title': 'Engineer', 'department': 'IT', 'salary': 14500, 'age': 31} | |
cv[4] = {'name': 'Bruce', 'surname': 'Wayne', 'title': 'Founder', 'department': 'CTO', 'salary': 200000, 'age': 38} | |
for i in cv: | |
print(f'Person: {i+1}') | |
for k,v in cv[i].items(): | |
print(f'{k.capitalize()}: {v}') | |
print('---') | |
######################################################################################################## | |
# cv_v1 = {'name': None, 'surname': None, 'title': None, 'department': None, 'salary': None, 'age': None} | |
# cv_v2 = ('name', 'surname', 'title', 'department', 'salary', 'age') | |
# cv_v3 = {'name', 'surname', 'title', 'department', 'salary', 'age'} | |
# | |
# p1i = ['John', 'Doe', 'Manager', 'Sales', 10000, 34] | |
# p2i = ['Robin', 'Hood', 'Manager', 'Marketing', 13000, 30] | |
# p3i = ['Charles', 'Chadler', 'Specialist', 'Marketing', 10500, 27] | |
# p4i = ['Abigail', 'Brand', 'Engineer', 'IT', 14500, 31] | |
# p5i = ['Bruce', 'Wayne', 'Founder', 'CTO', 200000, 38] | |
# | |
# p1o = { | |
# 'name': 'John', | |
# 'surname': 'Doe', | |
# 'title': 'Manager', | |
# 'department': 'Sales', | |
# 'salary': 10000, | |
# 'age': 34 | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment