Input

# Get input from user and display (input's type is `string`)
age = input("Your age? ") # python 3, raw_input for python 2
print("Your age:", age) # don't need space after "age"
# Get the input and store to numbers list
numbers = list(map(int, input().split()))
# Get multi inputs on 1 line
x, y, z, n = (int(input()) for _ in range(4))

Comment

Using # on each line.

# print("This is not showed.")
print("This is showed.")
# output
This is showed.

Print / Display

# Print normally
print("Hello!") # python 3
print "Hello!" # python 2
# output
Hello!
Hello!
# print with `format`
print("Hello {} and {}.".format("A", "B"))
# output
Hello A and B.
# change order
print("Hello {2} and {1}.".format("A", "B"))
# output
Hello B and A.
# Directly insert (python 3.6 or above)
b = "B"
print(f'Hello {"A"} and {b}.')
# output
Hello A and B.
# long strings
print('This is a part of sentence.'
      'This is other part.')
# output
This is a part of sentence. This is other part.
# print decimals
print("{:.6f}".format(number))
# print decimals
1.000000
# print multiples
print("1", 5, "thi") # there are spaces
# print multiples
1 5 thi
# first 20 characters, second 10 characters
print( '{:<20s} {:<10s}'.format(string_one, string_two) )

Display separated results (like in executing multiple code cells),

display(df_1)
display(df_2)

Logging

Check more here.