Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longest word in a sentence #29

Closed
Mo-Altayeb opened this issue Jan 3, 2025 · 1 comment · Fixed by #135
Closed

Longest word in a sentence #29

Mo-Altayeb opened this issue Jan 3, 2025 · 1 comment · Fixed by #135
Assignees

Comments

@Mo-Altayeb
Copy link

Write a function that takes a sentence and returns the longest word in that sentence

@majdadel20
Copy link

Reading sentence from user

sentence = input("Enter sentence: ")

Finding longest word

longest = max(sentence.split(), key=len)

Displaying longest word

print("Longest word is: ", longest)
print("And its length is: ", len(longest))

@majdadel20 majdadel20 self-assigned this Jan 5, 2025
@ozgurozbekuk ozgurozbekuk self-assigned this Jan 10, 2025
@ozgurozbekuk ozgurozbekuk moved this from TODO to DOING in ET6 Foundations Group 16 Jan 10, 2025
@ozgurozbekuk ozgurozbekuk moved this from DOING to READY FOR REVIEW in ET6 Foundations Group 16 Jan 11, 2025
@ozgurozbekuk ozgurozbekuk closed this as completed by moving to READY FOR REVIEW in ET6 Foundations Group 16 Jan 11, 2025
@Mo-Altayeb Mo-Altayeb linked a pull request Jan 11, 2025 that will close this issue
43 tasks
@Bikaze Bikaze reopened this Jan 11, 2025
@Mo-Altayeb Mo-Altayeb moved this from READY FOR REVIEW to UNDER REVIEW in ET6 Foundations Group 16 Jan 11, 2025
@github-project-automation github-project-automation bot moved this from UNDER REVIEW to READY FOR REVIEW in ET6 Foundations Group 16 Jan 12, 2025
@Mo-Altayeb Mo-Altayeb moved this from READY FOR REVIEW to DONE in ET6 Foundations Group 16 Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants