Skip to content

fixing_nested_if #2647

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

Merged

Conversation

LAbhilashKumar
Copy link
Contributor

@LAbhilashKumar LAbhilashKumar commented May 1, 2025

This update simplifies the condition checking by replacing nested if-else blocks with if-elif-else statements. By using elif, the code becomes more efficient and easier to read. Once a condition is satisfied, the rest of the checks are skipped, reducing unnecessary steps. This makes the code more organized and enhances readability, especially when there are multiple conditions to evaluate.

Addresses issue: #1910

@geekcomputers geekcomputers merged commit a20babb into geekcomputers:master May 1, 2025
0 of 2 checks passed
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.

3 participants