Python Forum
IF ELSE Homework Question
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IF ELSE Homework Question
#2
you need to use elif, not else.
you can have single if, [optional] multiple elif and [optional] single else
Note that currently your conditions don't cover case where numb is 65
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
IF ELSE Homework Question - by buckthimble - Mar-29-2020, 05:21 AM
RE: IF ELSE Homework Question - by buran - Mar-29-2020, 06:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Homework help:While Loops question Midhat_School 6 3,258 Jul-26-2020, 10:23 AM
Last Post: pyzyx3qwerty
  Python Homework Question OrcDroid123 1 2,459 Sep-01-2019, 08:44 AM
Last Post: buran
  Homework question dmhhfm 4 13,519 Apr-10-2019, 07:22 AM
Last Post: DeaD_EyE
  Beginner Python Homework Question (Calculate Gross Pay) matchamochi7 4 5,809 Nov-02-2018, 01:06 PM
Last Post: buran
  yet another homework question HakolYahol 16 8,025 Sep-27-2018, 04:52 PM
Last Post: gruntfutuk
  python in JES homework question, lsteffen 1 3,073 Feb-11-2018, 05:52 PM
Last Post: Taco_Town

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020