Q. What is the output of print(‘Hello %s’ % ‘World’)?
Solution:
The % operator with %s formats the string, replacing %s with ‘World’.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The % operator with %s formats the string, replacing %s with ‘World’.
Strengthen Your Practice with our comprehensive question bank.