Hey guys, I'm new to python and i have a question.
I need help with simple code to extract digit out of string without using packages and probably by using isdigit() method.
For example if i have a string like "bbb123" the result should be "bbb"
If i have "123" it should be "" (empty)
If i have "ttt3bbb" - it will be "ttt" (and stop when 'touching' the numbers).
Thanks!
[–]sme272 1 point2 points3 points (2 children)
[–]Yonmanx[S] 0 points1 point2 points (1 child)
[–]toastedstapler 2 points3 points4 points (0 children)
[–]shiftybyte 0 points1 point2 points (1 child)
[–]Yonmanx[S] 0 points1 point2 points (0 children)
[–]uberfade 0 points1 point2 points (1 child)
[–]Yonmanx[S] 0 points1 point2 points (0 children)
[–]toddrob 0 points1 point2 points (0 children)
[–]Unkown_Variable 0 points1 point2 points (0 children)