There's a number of issues. The 1st issues to address would be some implementation of these missing functions:
isoate_digits()
replace_digits()
swap_digit_1_with_digit_3()
recompose_encrypted_number()
You might consider learning about parameters and returning values. E.g. Consider:
def get_data():
global input
unencrypted=input("enter a 3 digit number") return unencrypted
def get_encryption(input):
return encrypt_number(input)
If you used the above, then you can write:
def main ():
unencrypted=get_data()
encrypt = get_encryption(unencrypted )
show_results(unencrypted, encrypt )
You could google for "Python string to int", it'll probably lead you to something like this:
for( ch in unencrypted):
print((int(ch)+7)%10
Might need to subtract a int('0').
The above should encrypt the number, then google "Python int to string" to output the result.
Sorry if there's any typos above. I did this on my phone.
Have fun with Pyhon!
--
Sent from Gmail Mobile