/ leetcodesolve / ALGROTHMS / CAPSLOCKON.py
swadhinbiswas update on git · 11/9/2024
4beca37
19 lines · 257 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
def function(file:str):
    lite=list(file)
    listx=[]
    for i in lite:
        if i.isalpha():

            x=ord(i)+32
            listx.append(chr(x))
    print(listx)



text="cOdEfOrCeS"
function(text)


def function(str)->str:
    arrx=[]
    for