python print line code example

Example 1: print python

print('Hello, world!')

Example 2: python new line

print("First Line \n" "Second Line")

Example 3: print( n ) in python

The new line character in Python is \n   print("\n")

Example 4: how to print in python

#('') a string, to indicate it is a string you can use ("") or ('')
print("hello world")
#a integer 
print(19)
# a float:
print(4.5)
# a bool:
print (True)
print (False)

Example 5: how to print a line in python

print("Hellow world!")

Example 6: new line in python

''' simple'''
print()
''' complex'''
print('\n',end='')