online python idel code example
Example 1: python ide online
https://www.onlinegdb.com/online_python_compiler
https://repl.it/languages/python3
Example 2: online python compiler
Use this site
https://repl.it/languages/python3
Example 3: online python compiler
w3schools has another compiler option
https://www.w3schools.com/python/trypython.asp?filename=demo_compiler
Example 4: 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) )