leetle
31. Length of Last Word
86%
Write a function solve that returns the length of the last word in a string.
Example: Input: "Hello World" Output: 5
Make sure you return your solution, don't print!
def solve(s):
pass
86%
Write a function solve that returns the length of the last word in a string.
Example: Input: "Hello World" Output: 5
Make sure you return your solution, don't print!
def solve(s):
pass