Jump to content


Recommended Posts

The second condition only gets tested if the first one was false. Since 5 is actually greater than 2, it does not need to go on and test the second condition.

If you want both conditions to be tested, you do not need the elif() statement. A second if() will do the job.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...