Tags


In python it the print statement prints the string and moves to next line by default … but sometime it is required to print multiple values in a single.

One way is use a variable and append it or
Just put the ‘,’ at the end of print

if __name__ == '__main__':
print 'hello',
print 'world'

Advertisements