-----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

Should probably be 

if (num1 > num2) and (num1>num3)
  [...]
*elseif* (num2 > num1) and (num2>num3)
  [...]
else

(NOTE -- it's early and I likely crossed syntax from a different
language)

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlxK/U4ACgkQjhHd8xJ5
ooHWPQf+PHv6QN8fWFCeYvMwkIs/GUMH9am+4XfUG6KJE6o+6cFiD7kLcLJI8eU6
78r2G/Lgv+zfcF7Tm6hkt+SHzDFTxuSNKeIDZh6zCUwS1RgRg6ormM7UAjkrO+lJ
MEY4rVjLbZDuvky6Iy0r8CcPOVH5wZrbSpUjUgXQgV5AP8Pw5zgdjzHTVcl5e9T9
rcWBUgFKZkYCx53rqtLUVnm+ZKmT70VxOCVU/tKLbb6JQAZrPaHzRhi6tBI3GZNM
+P9cWJATWQNu4r+bCSWez9EbMgWT2k8Cg35G4XizaWVaTtsj9/gSsnMtFYCzo5Hb
JbrSbRJIr7cBjr+gPKhra7IPJDKyOA==
=pAVt
-----END PGP SIGNATURE-----

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to