Skip to content

Commit 5a9622a

Browse files
committed
double.py
1 parent 4350f48 commit 5a9622a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

sprint5-prep-exercises/double.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)