Alwaldend
Docs
Light
Dark
Auto
Docs
Misc
Leetcode submissions
2023-07-08 18:25:39 +0300 MSK
2023-07-08 18:25:39 +0300 MSK
Length of Last Word
Tags:
Generated
Leetcode_submission
Links
https://leetcode.com/submissions/detail/989388793/
Code
class
Solution
:
def
lengthOfLastWord
(self, s: str)
->
int:
return
len(s
.
split()[
-
1
])