Answer to Question #280152 in Python for Sai Kalyan

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


1
Expert's answer
2021-12-15T16:22:58-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS