Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

f string python

#f string can be used insted of + in print statments

age = 33
#instead of:
print("I am " + str(age)) #output: I am 33
#do this
print(f"I am {age}")     #output: I am 33
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #string #python
ADD COMMENT
Topic
Name
9+8 =