geekcomputers / geekcomputers/Python
Using elif instead of if and nested else-if
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 35.4k
- Forks
- 12.9k
- Avg merge
- 2h 37m
- Merged PRs (30d)
- 1
Description
Hello,
I'm nowhere near to be good neither at Github nor at Python. But in your Ceaser decipher script, I saw that you used nested if-else if blocks instead of using the more suitable if-elif conditions. I thought that would be better both for you and for the readability of the code. Whatever you choose to do so, I wish you a good day.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Caesar decipher script referenced in the issue and inspect its nested if/else-if conditions. Replace the nested condition style with Python elif where appropriate, then run the script or its available examples to confirm deciphering behavior is unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100