In [1]:
assert True, "this is an assert statement"

In [2]:
num = 2.003

In [3]:
assert num >2, "value must be >2"

In [4]:
assert num <2.001


---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-4-831a50e1ffc7> in <module>()
----> 1 assert num <2.001

AssertionError: 

In [11]:
def temp_c_to_k(temp_in_c):
    """donvert temp from c to k
    """
    
    temp_in_k = temp_in_c + 273.15
    return temp_in_k

In [12]:
print(temp_c_to_k(10))


283.15

In [14]:
print(temp_c_to_k(-1000000000000000))


-999999999999726.9

In [ ]: