I want to write this recursively to encode other letters in the string with ord and chr, but when I write it recursively it calls for raw_input from user again. How do i fix this?
def rawEncode(input):
input= raw_input("GIVE ME SUPER SECRET MESSAGE TO ENCODE")
unencoded="%s" %input [:]
if "%s" %input =='':
return ''
else:
answer=ord("%s" %input [0])
return answer