#!/usr/bin/env python
# -*- coding:utf-8 -*-
class Solution:
    def lengthOfLastWord(self, s: str) -> int:
        l = s.split(" ")
        print(l)
        for i in l[::-1]:
            if i != "":
                return len(i)

a=Solution().lengthOfLastWord("hefds ")
print(a)
0b62348cfac4c1790ca987319f7163ee28eaba7d
<mask token>

class Solution:
    <mask token>


<mask token>

class Solution:

    def lengthOfLastWord(self, s: str) ->int:
        l = s.split(' ')
        print(l)
        for i in l[::-1]:
            if i != '':
                return len(i)


<mask token>
print(a)

class Solution:

    def lengthOfLastWord(self, s: str) ->int:
        l = s.split(' ')
        print(l)
        for i in l[::-1]:
            if i != '':
                return len(i)


a = Solution().lengthOfLastWord('hefds ')
print(a)

#!/usr/bin/env python
# -*- coding:utf-8 -*-
class Solution:
    def lengthOfLastWord(self, s: str) -> int:
        l = s.split(" ")
        print(l)
        for i in l[::-1]:
            if i != "":
                return len(i)

a=Solution().lengthOfLastWord("hefds ")
print(a)