Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add percentage sign to string python


percent = 12
print "Percentage: %s %%
" % percent  # Note the double % sign
>>> Percentage: 12 %

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #add #percentage #sign #string #python
ADD COMMENT
Topic
Name
3+5 =