Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print f

From geeksforgeeks:
"PEP 498 introduced a new string formatting mechanism known as Literal 
String Interpolation or more commonly as F-strings (because of the leading f 
character preceding the string literal). The idea behind f-strings is to 
make string interpolation simpler"

Example

name = 'Michael'

print(f"My name is {name}")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #print
ADD COMMENT
Topic
Name
2+6 =