± 33.5 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
# Parcourir une liste 100 fois plu... on 100 fois plus de temps
%timeit 'x' in range(10_000) ... s ± 7.4 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
# Parcourir une liste 100 fois plus ... ore 100 fois plus de temps
%timeit 'x' in range(1_000_000)
e une chaîne.
<code python>
>>> user = "yoann:x:1000:1000:yoann,,,:/home/yoann:/bin/bash"
>>> list_attributs = user.split(':') ...
['yoann', 'x', '1000', '1000', 'yoann,,,', '/home/yoann', '/bin/bash']
</code>
===== Le slicing =====
Comme pour les lis
octale ou hexadécimale :
<code python>
>>> b = 0b00000011
>>> o = 0o06
>>> h = 0xC4
</code>
La fonction built-in **bin()** retourne une str qui est la rep...
'0b10000'
>>> bin(0x10) ...
'0b10000'
</code>
===== Précision des calculs flottants