Wednesday, 15 June 2011

python - Specifying spaces between words -



python - Specifying spaces between words -

how utilize whitespaces in python in can specify how mach space between words

print "john , (5 spaces) mark went (3 spaces) london"

how specify 5 spaces code without typing " "

you seek this:

space = " " print "john and{}mark went to{}london".format(space*5,space*3)

here can find more information

python tabs

No comments:

Post a Comment