python print to terminal code example
Example 1: how to print to command line python
print ('Hello, world!')
Example 2: how to print to console python
print(value)
print("Hello, World!") # String
print(3) # Number
print(True) # Boolean
# Can also print a variable.
Example 3: how to write something in the pyton console
#to write something in the console just type print()
#like this:
print("Hello World!")
Example 4: python text ouput to console
#in python 2.7
print "Hello world"
#in python 3.7
print("Hello again world")
#Neither of these require any imports.