Skip to content

Unused option in 29_fortune_cookie_1.py #76

@madebysergio

Description

@madebysergio

Issue: Unused option in 29_fortune_cookie_1.py

  • In the source code for 29_fortune_cookie_1.py, options[8] will never be reachable because the range is for (0, 7) which means indexing begins at 0 and ends at 7 for a total of 8 indexes.
  • In the if, elif, else logic there are a total of 9 options since the first check for if starts with index 0.
    • This means options[8] will never be reached.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug hunter challengewww.codedex.io/community/monthly-challenge/october-2023

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions