Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code={"A":"D",
- "B":"E",
- "C":"F",
- "D":"G",
- "E":"H",
- "F":"I",
- "G":"J",
- "H":"K",
- "I":"L",
- "J":"M",
- "K":"N",
- "L":"O",
- "M":"P",
- "N":"Q",
- "O":"R",
- "P":"S",
- "Q":"T",
- "R":"U",
- "S":"V",
- "T":"W",
- "U":"X",
- "V":"Y",
- "W":"Z",
- "X":"A",
- "Y":"B",
- "Z":"C",}
- print(code)
- msg ="BONJOUR"
- msg_cesar = ""
- for i in range(len(msg)):
- msg_cesar = msg_cesar + code[msg[i]]
- print(msg_cesar)
- d = {"orange":10,"mangue":7,"pommes":4}
- for cle in d.keys():
- print(cle)
- for val in d.values():
- print(val)
- for item in d.items():
- print(item)
- note = {"NSI":10,"SES":12,"MATHS":10}
- for cle in note.keys():
- print(cle)
- for val in note.values():
- print(val)
- for item in note.items():
- print(item)
- pays= {"France":{"Pop":66992699,"Sup":551695},
- "Italie":{"Pop":10752660,"Sup":131957},
- "Grece":{"Pop":60494785,"Sup":301336}}
- print(pays)
- print(pays["Grece"]["Pop"])
- print(pays["France"]["Sup"])
- for cle in pays.keys():
- print(cle)
- pays[cle]["dens"] =pays[cle]["Pop"]//pays[cle]["Sup"]
- print(pays)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement