Question #280152

If an input is “General” then the output should be G_e_n_e_r_a_l



please can u solve this type code


Expert's answer

s = input()
if len(s) < 2:
    print(s)
else:
    r = s[0]
    for i in range(1,len(s)):
        r += '_' + s[i]
    print(r)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS