+ 1
How to add these two lists index by index I mean how can I get Hello there by adding these two lists .
x=["He","the"] y=["llo","re"]
7 Respuestas
+ 7
Vaibhav Tiwari ,
can we see your try before we are going to help you?
thanks!
>>> Beauty ,
i suppose your code results in "Hellothere".
+ 3
Vaibhav,
I remember pig latin was about appending 'ay' to a given string, in some way. Why are you joining lists' elements here? I'm not getting your idea ...
+ 1
x=input().replace(" ",",").split(",")
m=[char[0] for char in x]
z=m
y=[char+"ay" for char in z]
n=[char.replace(char[0],"") for char in x]
+ 1
The challenge is in code coach in community option named as "Pig Latin" challenge
+ 1
Because the first list n=['o', 'ver, 'here'] and second list y =['gay','oay','tay']
+ 1
If I add them both I will get the desired output I think
0
Ok