[...Array(31).keys()]
.map(num => Math.pow(2,num))
.reduce((total,num) => total + num)
/ 100
$21,474,836.47 class Duck:
def fly(self):
print("Duck flying")
class Sparrow:
def fly(self):
print("Sparrow flying")
class Whale:
def swim(self):
print("Whale swimming")
for animal in Duck(), Sparrow(), Whale():
animal.fly()
output: Duck flying
Sparrow flying
AttributeError: 'Whale' object has no attribute 'fly'
This moreso shows a dynamic typing issue.