1
# approach -1
2
class Solution:
3
def toLowerCase(self, s: str) -> str:
4
ch = ""
5
for i in s:
6
asc = ord(i)
7
if asc > 64 and asc < 91:
8
ch += chr(asc + 32)
9
else:
10
ch += chr(asc)
11
return ch
12

13

14
# approach -2
15
class Solution:
16
return s.lower()

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0