Examveda

In Python, what does the expression {:#x} do in a formatted string?

A. Formats an integer in hexadecimal

B. Formats a floating-point number

C. Formats a string

D. Formats a number in binary

Answer: Option D


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators