Login and Register ×
Check your Email for the OTP
Python Programming Language MCQ String Formatting in Python
⚠ Report ✓ Question Verified Copy Link
x = 'Python %.1f or Python %.2f' %(2.7, 3.51) print(x)
Explanation:
Let's evaluate the code:
%.1f
2.7
%.2f
3.51
So, the output of the code will be:
Python 2.7 or Python 3.51
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Python Programming Language MCQ String Formatting in Python