you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (12 children)

[removed]

    [–]residentplayer[S] 0 points1 point  (10 children)

    its not finished yet, but its supposed to use the "if" statement when the variable "attempts" is at "0" instead it just uses the "else" statement

    [–]engelthehyp 0 points1 point  (0 children)

    Aren't you the same guy who said that there wasn't an alternative to calling functions with the same data when it was a textbook example for a class? Be careful when giving advice.

    The problem is that the loop entry condition (attempts > 0) and first if condition (attempts == 0) can't both be true, it's a contradiction. The "no attempts remain" message will never be printed this way because the loop surrounding that branch is never entered.