From f8c43e56b394db294e800f646314ec8f43c7fee2 Mon Sep 17 00:00:00 2001
From: K V Ragul <cb.en.u4cse16237@cb.students.amrita.edu>
Date: Wed, 12 Dec 2018 09:26:08 +0530
Subject: [PATCH] assignment done

---
 CSE16237_Ex02_09.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 CSE16237_Ex02_09.py

diff --git a/CSE16237_Ex02_09.py b/CSE16237_Ex02_09.py
new file mode 100644
index 0000000..ba3f679
--- /dev/null
+++ b/CSE16237_Ex02_09.py
@@ -0,0 +1,11 @@
+st=input("Enter string to be encrypted:")
+shift=int(input("Enter shift amount:"))
+s1=""
+for i in st :
+	if i==' ' :
+		s1=s1+i
+	elif i.isupper():	 
+		s1=s1+ chr(int(ord(i)+shift-65)%26+65)
+	else:
+		s1=s1+chr(int(ord(i)+shift-97)%26+97)
+print(s1)
-- 
GitLab