hi i'm wondering if anyone could help me with this exercise:

  1.  Read an integer number from the console, store the result in a variable n
  2.  Read ā€˜nā€™ integers from the console and store them in a list
  3.  Sort the list in reverse order ā€“ from highest to lowest
  4.  Loop over the elements in the list and print them each on their own line 
to the console



Inputs: 1 number n ā€“ number of integers to read, list of integers

Outputs: n integers, one per line, sorted from highest to lowest



Thanks a lot.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to