I made a simple script in python that takes a string and encrypts it by moving every letter by random number between 1 and 10:
from random import randint
n = input('>>')
for i in n:
print(chr(ord(i) + randint(1,10)), end = '')
so for example i write "seven" and it gives me "yh~gx". What I want to know is it possible to make this happen as you are writing the string. For example if I wanted to write "seven" it would display "yh~gx". I know this is possible in C++ but I'm not sure how to do it in python.