+ 1
Help help , please
What's the problem in this code?? Pig latin ========= Convert "hai" to "aihay" Example 2: "love" to "ovelay" 1st letter to last and add "ay" at the end st=input () a=st.split (" ") for i in a: if i[0] == i[-1]: tmp1=i[0] tmp2=i.replace (tmp1, "")+tmp1*2+"ay" else: tmp1=i[0] tmp2=i.replace (tmp1, "")+tmp1+"ay" print (tmp2, end=" ") print ("")
1 ответ