why does Python print 69 instead of %. I have tried this on 2 keyboards with the same result.
why does Python print 69 instead of %. I have tried this on 2 keyboards with the same result.
Murray,
The percent sign is used in Python to get formatted output.
print ("The answer is %x" % (1*3*5*7))
output:
The answer is 69