<filename>Python-Practice.Program/p2.py
#Write a program to increment Numeric String by 6.

def numIncrement(li, n):
    for i in range(len(li)):
        if(li[i].isdigit()):
            li[i] = str(int(li[i]) + n)
    return li

l = ["HeHe","Ha Ha","116","666"]
print(numIncrement(l, 6))

<filename>Python-Practice.Program/p2.py
#Write a program to increment Numeric String by 6.

def numIncrement(li, n):
    for i in range(len(li)):
        if(li[i].isdigit()):
            li[i] = str(int(li[i]) + n)
    return li

l = ["HeHe","Ha Ha","116","666"]
print(numIncrement(l, 6))

#Write a program to increment Numeric String by 6.