Skip to content

Commit 298f1e5

Browse files
authored
Update problem-1.py
1 parent 545f733 commit 298f1e5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

problem-1/problem-1.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
def lengthOfLastWord(enterword):
2-
"""
3-
:type s: str
4-
:rtype: int
5-
"""
62

73
count = 0
84

@@ -12,9 +8,10 @@ def lengthOfLastWord(enterword):
128
elif count > 0:
139
break
1410

15-
return count
11+
print("Length of last word", count)
1612

1713
def main():
1814
input_string = "Hello World"
1915
result = lengthOfLastWord(input_string)
20-
#print("Length of the last word:s
16+
17+
main()

0 commit comments

Comments
 (0)