We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4350f48 commit 5a9622aCopy full SHA for 5a9622a
1 file changed
sprint5-prep-exercises/double.py
@@ -0,0 +1,17 @@
1
+def double(value):
2
+ return value * 2
3
+
4
5
+def double2(number):
6
+ return number * 3
7
8
9
+def main():
10
+ # "22" is a string --> it will return string: "2222"
11
+ print(double("22"))
12
+ # in this function that expected to double the number, it multiplied by 3 ( probably accidental mistype)
13
+ print(double2(10)) # return 30 instead of 20
14
15
16
+if __name__ == "__main__":
17
+ main()
0 commit comments