This episode of Python Programming Practice shows two approaches to LeetCode #58 - Length of Last Word:
https://leetcode.com/problems/length-of-last-word/

This is an easy difficulty problem.

Note that the intent of this series to help viewers think through approaches to problems, not to provide copy/paste access to code that will pass LeetCode tests.