This file contains hidden or 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
my_info = {'name': 'Cansel', | |
'email': 'asdf@sth', | |
'adres': {'Ankara': 'Çankıya', 'istanbul': 'Pendik', 'is': 'Maltepe'}} | |
my_info["adres"]["istanbul"] |
This file contains hidden or 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
sports = { | |
1: "Voleybol", | |
2: "Basketbol", | |
3: "Tenis", | |
4: "Yüzme", | |
5: "Futbol" | |
} | |
copy_sports = sports.copy() | |
copy_sports[6] = "Oryantiring" |
This file contains hidden or 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
dictionary = {"good":"buono/a", "bad":"cattivo"} | |
dictionary2 = {"beautiful":"bello/a", "ugly":"brutto/a", "tall":"alto/a"} | |
dictionary.update(dictionary2) | |
print(dictionary) | |
print(dictionary2) | |
dictionary |
This file contains hidden or 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
#a very small English-Italian dictionary with few elements :) | |
dictionary = {"good":"buono/a", "bad":"cattivo", "beautiful":"bello/a", "ugly":"brutto/a", "tall":"alto/a"} | |
if "short" not in dictionary.keys(): | |
dictionary["short"] = "corto/a" | |
dictionary |
This file contains hidden or 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
months = { | |
1: "January", | |
2: "February", | |
3: "Blank", | |
4: "April", | |
5: "March", | |
6: "June" | |
} | |
del months | |
months |
This file contains hidden or 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
months = { | |
1: "January", | |
2: "February", | |
3: "Blank", | |
4: "April", | |
5: "March", | |
6: "June" | |
} | |
del months["2"] |
This file contains hidden or 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
months = { | |
1: "January", | |
2: "February", | |
3: "Blank", | |
4: "April", | |
5: "March", | |
6: "June" | |
} | |
months.update({5:"March", 5:"May"}) |
This file contains hidden or 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
months = { | |
1: "January", | |
2: "February", | |
3: "Blank", | |
4: "April", | |
5: "March", | |
6: "June" | |
} |
This file contains hidden or 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
months[7] = "July" |
This file contains hidden or 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
months = { | |
1: "January", | |
2: "February", | |
3: "March", | |
4: "April", | |
5: "May", | |
6: "June" | |
} |
NewerOlder