Dynamically typed languages are cool

One of the main advantages, the code reusability.


In [11]:
def minimum(a, b):
    if a<b:
        return a
    else:
        return b

In [12]:
print(minimum(1,2))


1

In [13]:
print(minimum(1.0, 2.0))


1.0

In [10]:
print(minimum('a', 'b'))


a