I need help with something I'm working on. I'm new to python so bare with me.
I have a string being randomly generated in such format (example):
F' B D D2 A2 C'
6 Letters from A to F with ether a number " 2 " or " ' " attached to a letter or nothing at all.
What I'm trying to do is to assign each letter as a variable.
The string is basically a sequence in which certain functions have to be executed.
Any thoughts on how I could achieve this?
I tried generating a list and then extracting variables based on position [x:x] but as the letters without 2 or " ' " are randomly placed in a string its impossible to it.