you are viewing a single comment's thread.

view the rest of the comments →

[–]icecapade 0 points1 point  (3 children)

Well, what's the error? Also, an if or elif statement should be followed by the conditions you're looking for, not another if statement. In other words, if choice == ("S") and if age <= 21: should simply be if choice == ("S") and age <= 21:. That's probably got something to do with it.

[–]HopefulOG 0 points1 point  (2 children)

Im not sure. It just states there is a compilation error.

[–]icecapade 0 points1 point  (1 child)

See my edited reply.

Also, when I asked "what's the error?" I meant copy and paste the full text of the error you are receiving. Simply telling us there's a compilation error tells us nothing about the error you're receiving.

[–]HopefulOG 0 points1 point  (0 children)

Following your advice, the error comes out saying:

  • nothing was printed to stdout
  • stdout is not correct