-
Notifications
You must be signed in to change notification settings - Fork 0
/
pratice .py
64 lines (48 loc) · 1.22 KB
/
pratice .py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# square = lambda fanme,lname:print(f'hii my name is {fanme} {lname}')
#
#
# square('Anil','nayak')
# a = ('Anil','Sunil','Ankita','Banga','Sipu')
# sorted_student = sorted(a,reverse=True)
# for i in sorted_student:
# print(i)
students_Detail =(('Anil','M',21),
('Viveka sir','M',21),
('Romya','M',23),
('Ankita','F',56),
('Sunil','M',34)
)
# lambda_func = sorted()
# Grade = lambda grade:grade[1]
#
# students_Detail.sort(key=Grade)
#
# age = lambda age:age[2]
# students_sorted = sorted(students_Detail,key=age)
# for i in students_sorted: print(i)
# def upper(s):
# word = s.split(' ')
# for i in word:
# return i[0].upper() + i[1:len(i)],
# s = input(':')
# words = s.split(' ')
# map = list(map(lambda x:x[0].upper() + x[1:len(x)],words))
# print(' '.join(map))
# def solve(s):
# upper = []
#
# words = s.split(' ')
# print(words)
# map = list(map(lambda x:x[0].upper() + x[1:len(x)]),words)
# return map
#
#
#
# print(solve(s))
a = 'hello my name is anil kumar nayak'
b = a.split(' ')
def caps(a):
b = a.split(' ')
for i in b:
print(i[0].upper() + i[1:len(i)], end=' ')
caps(a)