0
python problem
62nd code project. I need help under standing what they want meh to do my code is very simple https://code.sololearn.com/c66l3R6m8XJs/#py
4 Respuestas
+ 5
Jackson Jameson
You mean the longest word challenge, right?
txt = input()
txt.split(' ') -> returns a list of each word in txt separated by space
"This a sentence"
-> ["This", "is", "a", "sentence"]
Now you can use a loop to find the longest word in this list.
+ 4
Okay, you've done this on multiple occasions. Please find, copy, and paste the description of the project. Then pop your attempted code in the playground, save it, and copy/paste a link to your code here. We cannot help if we don't know what the problem is, help us help you.
https://www.sololearn.com/Discuss/2928706/?ref=app
+ 4
print(txt.split())
EDIT: You can omit the argument in the split() method. It splits on spaces by default
+ 1
Take a look at these guides on how to ask a question.
https://stackoverflow.com/help/how-to-ask
https://www.sololearn.com/blog/38/8-simple-rules-to-get-help-from-the-community