Skip to content
Advertisement

Tag: string-comparison

How can I reference a string (e.g. ‘A’) to the index of a larger list (e.g. [‘A’, ‘B’, ‘C’, ‘D’, …])?

I have been racking my brain and scouring the internet for some hours now, please help. Effectively I am trying to create a self-contained function (in python) for producing a caesar cipher. I have a list – ‘cache’ – of all letters A-Z. Is it possible to analyze the string input (the ‘rawmessage’) and attribute each letter to its subsequent

Advertisement