From 50dcb375d8cad634033603c193ff3164afd3f50d Mon Sep 17 00:00:00 2001
From: aslesha <cb.en.u4cse16259@cb.students.amrita.edu>
Date: Wed, 19 Dec 2018 12:31:34 +0530
Subject: [PATCH] Add new file

---
 lab2/cse16259_e2_3.py | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 lab2/cse16259_e2_3.py

diff --git a/lab2/cse16259_e2_3.py b/lab2/cse16259_e2_3.py
new file mode 100644
index 0000000..585a283
--- /dev/null
+++ b/lab2/cse16259_e2_3.py
@@ -0,0 +1,8 @@
+def retlastfirst(string):
+	if(len(string)<=2):
+		return ''
+	else:
+		return string[:2]+string[-2:]
+
+string = input()
+print(retlastfirst(string))
-- 
GitLab