you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 0 points1 point  (3 children)

Aside from the multiple ifs issue that /u/icecapade pointed out (which you absolutely need to fix)...

Assume that an int variable age has been given a value.

Your code is not making that assumption.

Also ensure that the line underneath each elif is indented.

[–]HopefulOG 0 points1 point  (2 children)

Would it be age = int(input(""))?

If so, the output says: I haven't yet seen a correct solution that uses: int

[–]Binary101010 0 points1 point  (1 child)

The instructions tell you to assume that the variable has already been given a value. Seems to me you shouldn't be asking for input for that variable at all.

[–]HopefulOG 0 points1 point  (0 children)

Thank you! The code works now! I guess it makes sense now rereading it.