Skip to content

Commit cf98b2b

Browse files
committed
Late update
1 parent 3df4edc commit cf98b2b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

basics/Lambda/challenge.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tripled = lambda x: x*3
2+
num = int(input("Enter a number: "))
3+
print(tripled(num))
4+
# What is the output of this code?

basics/Lambda/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add = lambda x,y: x+y
2+
3+
print(add(2,3))

0 commit comments

Comments
 (0)