Computer Science, asked by jr1a2b3c4d5, 3 months ago

how to use print command in python

Answers

Answered by Anonymous
3

Answer:

Examples of output with Python 2.x:

print "Hello"

print "Hello", "world" Separates the two words with a space.

print "Hello", 34. Prints elements of various data types, separating them by a space.

print "Hello " + 34. ...

print "Hello " + str(34) ...

print "Hello", ...

sys.stdout.write("Hello") ...

sys.stdout.write("Hello\n")

Similar questions