Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string format_map

characters = {
  		      'Man':'Aragorn',
              'Dwarf':'Gimli'
             }

print('{Man} is a friend of {Dwarf}'.format(**characters))
 
PREVIOUS NEXT
Tagged: #python #string
ADD COMMENT
Topic
Name
5+6 =