Q. What does ‘Hello {0}’.format(‘Python’) output?
Solution:
.format(‘Python’) replaces {0} with ‘Python’, outputting ‘Hello Python’.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
.format(‘Python’) replaces {0} with ‘Python’, outputting ‘Hello Python’.
Strengthen Your Practice with our comprehensive question bank.