Vidyalelo
Python · Q20

Formatting and Decorators

Programming · Python · question 20

Q20

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')
Answer
C.
(3.3456789, 3.3456789)
D.
('3.3456789', 3.3456789)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board