I made a small script percent calculator; however, I want to actually include "%" in the printed message ...
I tried it at the beginning - it did not work ...
oFile.write ("Percent:% s%" \ n "% percent)
Then I tried "Percentage: %s"%"\n" % percent" , which did not work.
I want the result to be as follows: Percentage: x%
I keep getting "TypeError: not all arguments converted during string formatting"
Eric1989
source share