-
Notifications
You must be signed in to change notification settings - Fork 3
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
Solution for Sponge Case Challenge #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!, I think is great to have the readme with the problem description but if you leave it there it can get a little confuse, I would recommend that you englobe both the solution and the readme on a folder, maybe like this:
└── 📁solutions
└── 📁challenge_#
└── __init__.py
└── spongecase.py
└── README.MD
└── 📁tests
└── 📁challenge_#
└── __init__.py
└── test_spongecase.py
also I saw other group that use their name as the folder name, that could be a good alternative:
└── 📁solutions
└── 📁 chrismy_leprince
└── __init__.py
└── spongecase.py
└── README.MD
└── 📁tests
└── 📁chrismy_leprince
└── __init__.py
└── test_spongecase.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Solution for Sponge Case Challenge
name: solution review
about: A template PR for code review with a checklist
Challenge: SpongeCase
Description
SpongeCase is a style of text in which letters alternate between lowercase and uppercase, starting with lowercase. Each letter's case depends on its index (even or odd). Non-alphabetic characters remain in place but still affect the index count.
Example:
Files
spongecase.py
).spongecase.py
).tests/test_spongecase.py
.Unit Tests
TestSpongeCase
).Function Docstring
The Function
def spongecase(text: str) -> str:
).Strategy
Do’s:
Don’ts:
Implementation
Please review and check off each item above.
Once all items are addressed, we can finalize this PR.
Feel free to comment with any questions or clarifications.
Thank you for reviewing the SpongeCase solution!