If an input is “General” then the output should be G_e_n_e_r_a_l
please can u solve this type code
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment