from collections import namedtuple
a = namedtuple("mon-namedtuple", ["a", "b"])
help(namedtuple)
a = namedtuple("mon_namedtuple", ["a", "b"])
x = a(1, 2)
x.a
x.b
mon_namedtuple = namedtuple("mon_namedtuple", ["a", "b"])
import heapq
liste = [54, 6, 97, 8, 2]
heapq.heapify(liste)
liste
heappop(liste)
heapq.heappop(liste)
liste
heapq.heappush(liste, 42)
liste
def f():
 a = 1
f()
a
def f():
 global a
 a = 1
f()
a
dir(list)
help(list)
a = 3
f"J'ai une varible a qui vaut {a} !!!"
import sys
sys.stderr
print(1, file=sys.stderr)
from heapq import *
liste = [2, 5, 0, 1, 9]
heapify(liste)
heappop(liste)
heappush(liste, -1)
liste
