How do I add space between two variables after a print in Python
A simple way would be:
print str(count) + ' ' + str(conv)
If you need more spaces, simply add them to the string:
print str(count) + ' ' + str(conv)
A fancier way, using the new syntax for string formatting:
print '{0} {1}'.format(count, conv)
Or using the old syntax, limiting the number of decimals to two:
print '%d %.2f' % (count, conv)
Use string interpolation instead.
print '%d %f' % (count,conv)
Alternatively you can use ljust/rjust to make the formatting nicer.
print "%s%s" % (str(count).rjust(10), conv)
or
print str(count).ljust(10), conv