diff --git a/lab2/cse16259_e2_3.py b/lab2/cse16259_e2_3.py new file mode 100644 index 0000000000000000000000000000000000000000..585a2830e17209cc9df1fe30c81c47de7b6be7c8 --- /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))