this code was supposed to get in a loop and when it was invalidit should have been asked for the informations again and again but it doesnt : while True:
           
           for i in text:
                        print (ord(i))
                        print (i , "=" , chr (ord(i) +n))
                        password = (password + chr (ord(i) + n))



if (text.lower() != text):
    print ("only lower case.")

elif (n<2 or n>15):
    print ("your code must be between 2 and 15, including them.")

         return False


else:
print(text ,  "=>"  , password)