Skip to content
Snippets Groups Projects
Commit 0559215d authored by Vivin Balaji K S 's avatar Vivin Balaji K S
Browse files

Upload New File

parent d7f7246a
Branches
No related tags found
No related merge requests found
Pipeline #116 canceled
a=input("Enter the string")
shift=int(input("shift value "))
print(a)
f=""
for i in range(len(a)):
c=a[i]
if c.isupper():
f+=chr((ord(c)+shift-65)%26+65)
else:
f+=chr((ord(c)+shift-97)%26+97)
print(f," encrypted string")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment