February 2026
Get a Substring Slice in Python
You can get part of string in python using the same approach you would use for lists:
=
=
Output:
alfa
=
=
Output:
bravo charlie
=
=
Output:
bravo
Just another one of the things that makes python super handy for little scripts.
-a
end of line