Exercize to understand from three numbers which is more high
Joel Goldstick
joel.goldstick at gmail.com
Fri Jan 25 07:43:10 EST 2019
On Fri, Jan 25, 2019 at 7:16 AM Dan Purgert <dan at djph.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> ^Bart wrote:
> >
> > if number1 > number2 and number1 > number3:
> > print("Max number is: ",number1)
> >
> > if number2 > number1 and number2 > number3:
> > print("Max number is: ",number2)
> >
> > else:
> > print("Max number is: ",number3)
> >
> > Try to insert numbers 3, 2 and 1 and the result will be number 3 and 1,
> > can you help me to fix it?! :\
> >
> > ^Bart
> --
> https://mail.python.org/mailman/listinfo/python-list
This looks like homework. What you are asking could be solved a
number of ways. I'm guessing your homework wants you to learn about
if/else and comparison operators. At any rate, try the python tutor
forum, and be more specific to the rules of your assignment
--
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
More information about the Python-list
mailing list