Skip to content

Commit 0f5e928

Browse files
authored
Create LjustLambda.py
1 parent 0118600 commit 0f5e928

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Training/LjustLambda.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'''
2+
3+
Usage of ljust Method and lambda
4+
5+
'''
6+
7+
8+
a="String"
9+
10+
print(a.ljust(20))
11+
print(a.ljust(20,'0'))
12+
13+
x = lambda : 10
14+
print(x())
15+
16+
x=lambda a,b: a+b
17+
print(x(9,10))
18+
19+
# Represents the function
20+
print(type(x))

0 commit comments

Comments
 (0)