How can I make this more complex?

inhahe inhahe at gmail.com
Mon Nov 9 18:12:22 EST 2020


if 100 > grade >= 90:



On Mon, Nov 9, 2020 at 6:01 PM Quentin Bock <qberz2005 at gmail.com> wrote:

> grade = input("Enter your grade: ")
> if grade >= 90:
>     print("You got an A ")
> if grade >= 80:
>     print("You got a B ")
> if grade >= 70:
>     print("You got a C")
> if grade >= 60:
>     print("You got a D ")
> if grade >= 50:
>     print("You failed")
>
>
>
>
> How can I make this to say if your grade is 90 or higher BUT less than 100
> you got an A,
> Thanks
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list