online python interpretr code example
Example 1: online python compiler
Use [repl.it](https://repl.it/)!
Try out the basics of Replit with our
interactive playground.
Code, collaborate, compile, run, share, and deploy
Python and more online from your browser
Example 2: online pythone ide
print("hello world")
def encrypt(text,s):
result = ""
for i in range(len(text)):
char = text[i]
if (char.isupper()):
result += chr((ord(char) + s-65) % 26 + 65)
else:
result += chr((ord(char) + s - 97) % 26 + 97)
return result
text=input("Enter a message: ")
s = 2
print ("Text : " + text )
print ("Shift : " + str(s) )
print ("Cipher: " + encrypt(text,s) )