Skip to content

Commit 4b082ac

Browse files
committed
Limits of type checking
1 parent 4a28959 commit 4b082ac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def double(number):
2+
# return number * 3
3+
return number * 2
4+
5+
print(double(10))
6+
# The bug is that the double function multiplies the number by 3 instead of 2.
7+
# Since the function is called double, it should multiply the number by 2.

0 commit comments

Comments
 (0)