<reponame>impastasyndrome/DS-ALGO-OFFICIAL<filename>CONTENT/PYTHON/LEETCODE/058_length_of_last_word/len_of_last_word.py
class Solution:
    # @param {string} s
    # @return {integer}
    def lengthOfLastWord(self, s):
        if not s.strip():
            return 0
        return len(s.strip().split()[-1])

class Solution:
    # @param {string} s
    # @return {integer}
    def lengthOfLastWord(self, s):
        if not s.strip():
            return 0
        return len(s.strip().split()[-1])
# @param {string} s # @return {integer}