SyntaxFix
Write A Post
Hire A Developer
Questions
So, your input is 'dan|warrior|54' and you want "warrior". You do this like so:
>>> dan = 'dan|warrior|54' >>> dan.split('|')[1] "warrior"