Consider the code below.
def return_something(someint):
if someint > 5:
return someint
y = return_something(2)
y.real()
This is going to give you the error
AttributeError: 'NoneType' object has no attribute 'real'
So points are as below.