Python : set, dictionary, tuple et list

 - Set :


myset = {"apple""banana""cherry"}

- Dictionary

thisdict = {
  "brand""Ford",
  "model""Mustang",
  "year"1964
}


- List

mylist = ["apple""banana""cherry"]

- Tuple:

a = (3, 4, 7)


Posts les plus consultés de ce blog

Activité: Jeu du serpent en python