Remove numbers in an String



Problem to remove number in a string.



Example-1:


Input    : s = "mycrazycoding2020"
Output   : mycrazycoding  


Example-2:


Input    : S = "helloworld123"
Output   : helloworld  







Solution




n = "mycrazycoding2020"

d = ""

for i in range(len(n)):

    if(not n[i].isdigit()):

        d += n[i]

print(d)



Output



mycrazycoding