5. New Score

System Message: ERROR/3 (/home/runner/work/PyZombis/PyZombis/_sources/lectures/TWP37/TWP37_5_en.rst, line 4)

Duplicate ID – see lectures/TWP37/TWP37_5, line 8

..  datafile:: surf3.txt
    :hide:

    Johny 8.65
    Juan 9.12
    Joseph 8.45
    Stacey 7.81
    Aideen 8.05
    Zack 7.21
    Aaron 8.31

5.1. Sorting in decreasing order

5.2. sort and reverse methods

System Message: WARNING/2 (/home/runner/work/PyZombis/PyZombis/_sources/lectures/TWP37/TWP37_5_en.rst, line 51)

Title underline too short.

``sort`` and ``reverse`` methods
------------------------------
  • The sort method sorts the data.

  • The use of reverse keeps them in descending order.

  • It is smarter to use scores.sort(reverse=True)

5.3. Finally the correct positions

You have attempted of activities on this page