loading...

Discussion on: Daily Challenge #22 - Simple Pig Latin

Collapse
aadibajpai profile image
Aadi Bajpai

python one liner ftw.

print(*map(lambda x: f'{x[1:]+x[0]}ay' if x.isalpha() else x, input().split()))
>>> print(*map(lambda x: f'{x[1:]+x[0]}ay' if x.isalpha() else x, input().split()))
Pig latin is cool
igPay atinlay siay oolcay