Created
May 26, 2021 18:45
-
-
Save karcan/6ccabf25bd9ce7c171d71df8e8a5d669 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_list = list() | |
karcan_cv = {"first_name":"Karcan", "languages":[{"lang":"Turkish","grade":"5"}], "educations":[{"school_grade":"High School","school_name":"İzmit Mesleki ve Teknik Anadolu Lisesi"}]} | |
ugur_cv = {"first_name":"Uğur", "languages":[{"lang":"Turkish","grade":"5"}], "educations":[{"school_grade":"High School","school_name":"Samandıra Endüstri Teknik ve Meslek Lisesi"}]} | |
omer_cv = {"first_name":"Ömer", "languages":[{"lang":"Turkish","grade":"5"},{"lang":"English","grade":"4"}], "educations":[]} | |
pinar_cv = {"first_name":"Pınar", "languages":[{"lang":"Turkish","grade":"5"},{"lang":"English","grade":"3"}], "educations":[]} | |
ahmet_cv = {"first_name":"Ahmet", "languages":[{"lang":"Turkish","grade":"5"},{"lang":"Germany","grade":"5"}], "educations":[]} | |
cv_list.append(karcan_cv) | |
cv_list.append(ugur_cv) | |
cv_list.append(omer_cv) | |
cv_list.append(pinar_cv) | |
cv_list.append(ahmet_cv) | |
for k in cv_list: | |
print("First Name : %s , Languages : %s , Educations : %s" % ( | |
k["first_name"], | |
["%s(%s)" % (x["lang"], x["grade"]) for x in k["languages"]], | |
["(%s)%s" % (x["school_grade"], x["school_name"]) for x in k["educations"]] | |
)) |
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
First Name : Karcan , Languages : ['Turkish(5)'] , Educations : ['(High School)İzmit Mesleki ve Teknik Anadolu Lisesi'] | |
First Name : Uğur , Languages : ['Turkish(5)'] , Educations : ['(High School)Samandıra Endüstri Teknik ve Meslek Lisesi'] | |
First Name : Ömer , Languages : ['Turkish(5)', 'English(4)'] , Educations : [] | |
First Name : Pınar , Languages : ['Turkish(5)', 'English(3)'] , Educations : [] | |
First Name : Ahmet , Languages : ['Turkish(5)', 'Germany(5)'] , Educations : [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment