Mar-10-2018, 02:29 PM
The 'str.find()' is going to return a number (integer) starting with 0 For the beginning and ending with usually the length of the string, unless specified otherwise. It will be -1 if not found. You will need to rethink your logic to determine what exactly you want to do with the 'key' (index) as it relates to process.
Also, in your 'decoded' function, don't you want to return 'coded' rather than 'plain'?
Also, in your 'decoded' function, don't you want to return 'coded' rather than 'plain'?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition