python strings

Python Strings Formatting

Python strings formatting is a way to modify the strings according to our needs. There are many different ways to format the strings. Python2 used a % operator to format a string whereas Python3 uses a new way of formatting using a string.format() method. Now, Python3.6+ even supports f-string.