Computer Science, asked by raveena81, 6 months ago

what is the use of string formatting operator in python?​

Answers

Answered by DevanshuYadav123
1

Answer:

Python uses C-style string formatting to create new, formatted strings. The "%" operator is used to format a set of variables enclosed in a "tuple" (a fixed size list), together with a format string, which contains normal text together with "argument specifiers", special symbols like "%s" and "%d".

Answered by Rohitranawatyadav
2

Explanation:

Python uses C-style string formatting to create new, formatted strings. The "%" operator is used to format a set of variables enclosed in a "tuple" (a fixed size list), together with a format string, which contains normal text together with "argument specifiers", special symbols like "%s" and "%d".

Similar questions