-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
good first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested
Description
Issue Description:
We need to write a Python program that takes a sentence as input and returns the longest word in that sentence. This program will help beginners understand string manipulation and basic logic building in Python.
Example:
Input: "Random sentences can also spur creativity"
Output: "creativity"
Requirements:
- Use basic Python (no external libraries)
- Take input from the user
- Handle punctuation (optional)
- If two words have the same length, return the first one
How to Work on This Issue:
- Fork the repository and clone it to your local machine.
- Create a new branch, for example:
longest-word-feature. - Add a new Python file named
longest_word.py. - Write a function to solve the problem.
- Add a few test cases (in comments or as part of the code).
- Commit your changes with a meaningful message.
- Push the branch and create a Pull Request linking to this issue.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested