Skip to content

Commit b2f7c11

Browse files
committed
new update
1 parent 312b222 commit b2f7c11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#python prog to capitilize the string
2-
def custom_upper(string):
2+
def custom_upper(string) -> None:
33
upper_string=""
44
for char in string:
55
if 'a'<=char<='z':
@@ -8,7 +8,7 @@ def custom_upper(string):
88
upper_string+=char
99
return upper_string
1010

11-
def custom_lower(string):
11+
def custom_lower(string) -> None:
1212
lower_string=""
1313
for char in string:
1414
if 'A'<=char<='Z':
@@ -18,10 +18,10 @@ def custom_lower(string):
1818
return lower_string
1919

2020

21-
def custom_capitalize(w):
21+
def custom_capitalize(w)-> None:
2222
return custom_upper(w[0])+custom_lower(w[1:])
2323

24-
def custom_title(string):
24+
def custom_title(string)-> None:
2525
words=string.split()
2626
tcw=[]
2727
for i in words:
@@ -31,4 +31,4 @@ def custom_title(string):
3131
print(sentence)
3232

3333
string=input("enter the string")
34-
custom_title(string)
34+
custom_title(string)M

0 commit comments

Comments
 (0)