Any string is a sequence of characters enclosed in quotes.
For example, "School", 'Python', 'Computer science', "123".
Since version Python 3.6, developers have implemented a new type of string - f-strings or formatted strings, which are not only faster than other formatting methods but also improve code readability.
When writing a formatted string, the quotation marks are preceded by a format character, the letter f
name = "Arman"
age = 16
print("My name is ", name, ". I am ", age, " years old.", sep='') # My name is Arman. I am 16 years old.
print(f"My name is {name}. I am {age} years old.") # My name is Arman. I am 16 years old.
print(f"My name is {name.upper()}. I am {age} years old.") # My name is ARMAN. I am 16 years old.
daysofweek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday',
'Friday', 'Saturday', 'Sunday']
print(f"The 5th day of week - {daysofweek[4]}") # The 5th day of week - Friday