Skip to content

Commit 545f733

Browse files
authored
Update problem-1.mojo
1 parent 7c89432 commit 545f733

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

problem-1/problem-1.mojo

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from python import Python
22

3-
from python import Python
4-
53
def lengthOfLastWord(enterword: String):
4+
65
py = Python.import_module("builtins")
76

87
count = 0
@@ -15,7 +14,7 @@ def lengthOfLastWord(enterword: String):
1514
print("Length of the last word:")
1615
print(count)
1716

18-
# Main function
17+
1918
def main():
2019
input_string = "Hello World"
2120
lengthOfLastWord(input_string)

0 commit comments

Comments
 (0)