Examveda

What will be the output of the following Python code snippet?
x=3.3456789
'%s' %x, str(x)

A. Error

B. ('3.3456789', '3.3456789')

C. (3.3456789, 3.3456789)

D. ('3.3456789', 3.3456789)

Answer: Option B


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators