Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

format in python

print('The {2} {1} {0}'.format('fox', 'brown', 'quick'))

result = 100/777

print('{newvar}'.format(newvar = result))

print('the result was {r:0.3f}'.format(r = result))
 
PREVIOUS NEXT
Tagged: #format #python
ADD COMMENT
Topic
Name
8+9 =