How to convert this into PIG LATIN | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to convert this into PIG LATIN

If the tuple is ("The", "quick", " brown", "fox")

20th Jan 2020, 7:29 AM
Lalit kumar
Lalit kumar - avatar
3 Answers
+ 5
How would you move the first characters to the end and add "ay"?
20th Jan 2020, 7:39 AM
Seb TheS
Seb TheS - avatar
+ 3
You can copy the elements into a list, do the Pig Latin thing as you copy the elements to the list. You can then transform the list back into a new tuple. Tuples are immutable, you can't modify its content, hence the use of a temporary list.
20th Jan 2020, 1:10 PM
Ipang
0
Yes
20th Jan 2020, 8:30 AM
Lalit kumar
Lalit kumar - avatar