153k views
23 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 MindStudio
by
3.2k points

1 Answer

2 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 Jaustin
by
3.7k points