From 7d02eeb4f464033a0aede445fa6616818a5c7810 Mon Sep 17 00:00:00 2001 From: PRANESH KUMAR N <cb.en.u4cse16230@cb.students.amrita.edu> Date: Tue, 11 Dec 2018 23:22:16 +0530 Subject: [PATCH] Upload New File --- lab23.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lab23.py diff --git a/lab23.py b/lab23.py new file mode 100644 index 0000000..8a754d0 --- /dev/null +++ b/lab23.py @@ -0,0 +1,7 @@ +s = input("enter the string:") +if len(s)>2: + print(s[0:2]+s[-2:]) +if len(s)==2: + print(s+s) +if len(s)<2: + print("empty") \ No newline at end of file -- GitLab