514,773 views
29 votes
29 votes
(05.01 MC)

Read the following Python code:

skittles = 255
hexadecimalSkittles = hex(skittles)
print(hexadecimalSkittles)

Which of the following is the correct output? (5 points)
Group of answer choices
0bff
0xff
0yff
0zff

User DanielSmedegaardBuus
by
2.0k points

1 Answer

11 votes
11 votes

Answer:

0xff

Step-by-step explanation:

the thing is that hexadecimal always starts with 0x

and theres only one option that starts with 0x

User Imeshke
by
3.1k points