Skip to content

Commit 6c47e61

Browse files
committed
5thCommit
1 parent 6275bd7 commit 6c47e61

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Lambda.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Lambda function is an anonymous funtion
22

33
#defining the funtion
4-
greet = lambda:print("Ram")
4+
# greet = lambda:print("Ram")
55
#calling the function
6-
greet()
6+
# greet()
7+
8+
9+
square = lambda x: x * x
10+
11+
print(square(5)) # Output: 25

0 commit comments

Comments
 (0)