a = "i.like.you"a = a.split(".")print(".".join(a[-1::-1]))
Standard input is empty
you.like.i
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!