0
pig latin help in code coach
https://www.sololearn.com/coach/16?ref=app this is the code I want to remove first letter and make this work https://code.sololearn.com/cszZpuB1J6Fi/?ref=app
10 Respuestas
+ 3
#slice
#split
# +ay
inp=input("").split(" ")
for i in inp:
num=i[0][0]
print (i.replace(num,"") +num+"ay",end=" ")
that should work fine
+ 1
✳AsterisK✳
input: hello world
output:
ellohay
orldway
expected output:
ellohay orldway
+ 1
✳AsterisK✳
Did you change something? Your code works now correct :)
+ 1
Yeah, Denise Roßberg I noticed later that the challenge need all output in a single line
0
To post your code: you need to store your code in the code play ground. Then post the link here.
In code coach everyone can only see the own codes.
0
ich did it
0
For more than one word, you print each word in a new line. But you need to print them in one line.
0
yes , I also can't replace all first character in each string in my code it only works on the first one
0
yes , I see that's also a problem
0
it doesn't work because of the space , and yeah the guy named asterisk added something to it that made it loop for every object in the list not just the first