0
Code coach "Pig Latin", share your answers
Hi, this is my code for Code coach "Pig Latin": for i in input().split(): print(i[1:]+i[0]+"ay", end=" ") Share your versions, how did You do it? It will be usefull for me. Maybe on another languages, it will be interesting too
2 ответов
+ 5
print(*((lambda w: w[1:]+w[0]+"ay") (word) for word in input().split()), end=" ")
# Keep learning & happy coding :D
+ 2
In C,
#include <stdio.h>
#include <string.h>
int main() {
char buf[256];
while (scanf("%s", buf) != EOF)
printf("%s%cay ", buf+1, *buf);
return 0;
}