Q. Which method prints a formatted string using variables?
Solution:
format() formats strings with variables, e.g., ‘{} {}’.format(‘a’, ‘b’) = ‘a b’.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
format() formats strings with variables, e.g., ‘{} {}’.format(‘a’, ‘b’) = ‘a b’.
Strengthen Your Practice with our comprehensive question bank.