Skip to content

Conversation

@wbalbo
Copy link
Contributor

@wbalbo wbalbo commented Apr 12, 2025

For issue: #6

  • Added find_longest_word() function to identify the longest word in a sentence, ignoring punctuation and returning the first longest word in case of a tie.
  • Implemented interactive CLI mode for users to input sentences manually.
  • Included a unittest test suite to validate various input cases including: punctuation handling, ties, empty strings, and special characters.
  • Used only Python standard libraries (string, sys, unittest).
  • Enabled test execution via command-line argument: python script.py test.

- Added `find_longest_word()` function to identify the longest word in a sentence,
  ignoring punctuation and returning the first longest word in case of a tie.
- Implemented interactive CLI mode for users to input sentences manually.
- Included a `unittest` test suite to validate various input cases including:
  punctuation handling, ties, empty strings, and special characters.
- Used only Python standard libraries (`string`, `sys`, `unittest`).
- Enabled test execution via command-line argument: `python script.py test`.
@codewithdhruba01 codewithdhruba01 merged commit 0ba8a7e into codewithdhruba01:master Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants