Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to use .format in python

#The {} are replaced by the vairables after .format
new_string = "{} is string 1 and {} is string 2".format("fish", "pigs")
Source by mkaz.blog #
 
PREVIOUS NEXT
Tagged: #How #python
ADD COMMENT
Topic
Name
7+7 =