« Programmation Python/Opérateurs » : différence entre les versions

Contenu supprimé Contenu ajouté
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
Ligne 104 :
La division entre deux entiers produit un entier en Python 2, et un nombre à virgule flottante en Python 3.
 
<sourcesyntaxhighlight lang="Python3">
>>> 8/4
2.0
>>> 8//4
2
</syntaxhighlight>
</source>
 
{{../Tableau des opérateurs}}