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")
 
PREVIOUS NEXT
Tagged: #How #python
ADD COMMENT
Topic
Name
4+1 =