What I learned from Tutorial
1. Literal String Interpolation
lsi = "Literal String Interpolation
print(f""" This is tutorial for {lsi}. """)
=> This is tutorial for Literal String Interpolation
Literal String is the python's enhancement tool for styling (It is similar to es6 grammer tool in Javascript!)
There are several ways to format text strings 1) %-formating 2) str.format() 3) string template
Each of them have advantages and disadvantages. This PEP proposed to add a new string formatting mechanism
my code is following
I thought to show string format + number type, Number type should be transformed into str format. However, there's a better way to do this.
You can use Literal String Interpolation. By doing this, use can use it without chage the type of it.