coding practice-8

 write a program to print the individual character of the word separated by -(hypen).


        a=input()

        l=len(a)

        b=a[0]

        for i in range(1,l):

            b=b + "-" + a[i]

        print(b)


Comments