First time poster here, and newbie to Python. I am currently working on a script that will decode something for me. So the long and short of my problem/question is how do I print a character from a specific position? Something like below:
##What the script will be looking through
Please use code tags when you post code like it has been edited below, Thanks
- Code: Select all
str = 'ahgaofihoibjgointu24bfew8yb89'
find_o = str.find('o')
This is because it simply prints the position the character it is looking for. What I am looking for is I tell it to "print find_o" and it prints the character in the fourth position. Does anyone know how I can achieve this? Thank you in advance.