Retour aux quiz
Débutant

Conversion de type avec int() (3)

Que contient la liste après ces opérations ?

quiz.py
1
data = int(\FACADE\", 16) print(data)"

Réponses possibles

AFACADE
B16435934
C16
DError

Explication

Le nombre 'FACADE' est une représentation hexadécimale (base 16). La fonction int(\FACADE\", 16) le convertit en entier décimal, ce qui donne 16435934."