[Tutor] How to sort float number from big numbers to small numbers?
David Rock
david at graniteweb.com
Mon Sep 25 09:36:55 EDT 2017
> On Sep 24, 2017, at 22:34, edmundo pierre via Tutor <tutor at python.org> wrote:
>
> I am trying to sort float numbers input by an user from the bigger to smaller number. I do not know how to compare float numbers. Any ideas? Thank you!
> Edwin
Some basic ideas to think about:
1. inputs are usually strings, so make sure you are storing them as floats
2. put them in a list. You can then use list built-ins to sort
What have you tried so far? Are you trying to start at all, or are you trying things that aren’t working?
—
David Rock
david at graniteweb.com
More information about the Tutor
mailing list