geekcomputers / geekcomputers/Python

Using elif instead of if and nested else-if

Open
#1,910 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.