Python: how to add spaces between strings -


to more specific, i'm trying print several results of function in form of sentence print str(function(first)) + str(function(second)) + str(function(third)) , on, i've come across problem there no spaces between individual strings.

so, want know how add spaces between each of strings.

use join()

print " ".join([str(function(first)), str(function(second)), str(function(third))]) 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -