# Umika Tunuguntla ut8rh

class Solution(object):
    def lengthOfLastWord(self, s):
        """
        :type s: str
        :rtype: int
        """
        
        arr= []
        
        arr= (s.strip()).split(" ")
        index = len(arr) - 1
        return len(arr[index])
        
866b3e41af8aa4a4142f8182222ee6f8b9180a27
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def lengthOfLastWord(self, s):
        """
        :type s: str
        :rtype: int
        """
        arr = []
        arr = s.strip().split(' ')
        index = len(arr) - 1
        return len(arr[index])

# Umika Tunuguntla ut8rh

class Solution(object):
    def lengthOfLastWord(self, s):
        """
        :type s: str
        :rtype: int
        """
        
        arr= []
        
        arr= (s.strip()).split(" ")
        index = len(arr) - 1
        return len(arr[index])
        