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

21st Jan 2020, 9:19 PM
yara moharram
yara moharram - avatar
10 Answers
+ 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
21st Jan 2020, 9:42 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
✳AsterisK✳ input: hello world output: ellohay orldway expected output: ellohay orldway
21st Jan 2020, 9:48 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
✳AsterisK✳ Did you change something? Your code works now correct :)
21st Jan 2020, 9:50 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Yeah, Denise Roßberg I noticed later that the challenge need all output in a single line
21st Jan 2020, 9:54 PM
✳AsterisK✳
✳AsterisK✳ - avatar
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.
21st Jan 2020, 9:21 PM
Denise Roßberg
Denise Roßberg - avatar
0
ich did it
21st Jan 2020, 9:25 PM
yara moharram
yara moharram - avatar
0
For more than one word, you print each word in a new line. But you need to print them in one line.
21st Jan 2020, 9:37 PM
Denise Roßberg
Denise Roßberg - avatar
0
yes , I also can't replace all first character in each string in my code it only works on the first one
21st Jan 2020, 9:40 PM
yara moharram
yara moharram - avatar
0
yes , I see that's also a problem
21st Jan 2020, 9:49 PM
yara moharram
yara moharram - avatar
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
21st Jan 2020, 9:53 PM
yara moharram
yara moharram - avatar