There was an error while loading. Please reload this page.
1 parent 5bb7641 commit 1f45822Copy full SHA for 1f45822
1 file changed
prep-exercises/why_we_use_types.py
@@ -22,8 +22,7 @@ def second(value):
22
print(second("hello"))
23
print(second("22"))
24
25
-# The bug: this function is called double but multiplies by 3!
26
def double_bug(number):
27
- return number * 3
+ return number * 2
28
29
-print(double_bug(10)) # Should return 20 but returns 30
+print(double_bug(10)) # Returns 20 (correctly doubles the number)
0 commit comments