Q. Write a program that takes a tuple with words in Pig Latin (as created by previous question) and translates it back to original text.

 

Answer =

 

tup = eval(input("Enter a tuple :- "))
index = 0
while index < len(tup):
    new = tup[ index ][ -3 ] + tup[ index ][0 : -3 ] 
    print (new, end = " ")
    index += 1

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post