+ 1

What to do with my code for 5 of 5

It's on the task with "Pig latin" normal_sentence = input().split() pig_sentence = "" pig_words = "" pig_list = [] for word in normal_sentence: normal_sentence.append(word[0]) normal_sentence.remove(word[0]) first_letter = word[0] last_letters = "ay" word = word.translate({ord(first_letter): None}) word += word.join(first_letter) pig_sentence += f"{word}{last_letters}" + " " print(pig_sentence)

13th Mar 2020, 2:47 PM
MomchilSotirov
MomchilSotirov - avatar
1 Réponse
0
Try input: aaa bbb ccc
13th Mar 2020, 3:39 PM
Mihai Apostol
Mihai Apostol - avatar
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes
Create Agent
0 Votes