From d7f7246a860c878acbc7ab8f43f381a811dfe328 Mon Sep 17 00:00:00 2001 From: Vivin Balaji K S <cb.en.u4cse16265@cb.students.amrita.edu> Date: Wed, 12 Dec 2018 10:23:35 +0530 Subject: [PATCH] Upload New File --- CSE16265_ExNo02_08.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 CSE16265_ExNo02_08.py diff --git a/CSE16265_ExNo02_08.py b/CSE16265_ExNo02_08.py new file mode 100644 index 0000000..8013d6f --- /dev/null +++ b/CSE16265_ExNo02_08.py @@ -0,0 +1,8 @@ +def reve(a): + if len(a)%4==0: + print(a[::-1]) + else: + print(a) +a=input() +reve(a) + -- GitLab