Jump to content
Diana2198

Sortare python

Recommended Posts

Posted (edited)

Cum pot sorta aceasta lista in python in functie de 2 parametri:

student_objects = [
...     Student('john', 'A', 15),
...     Student('jane', 'B', 17),
...     Student('dave', 'B', 15),
... ]

De exemplu numerele 15,17,10 in ordine descrescatoare si numele in ordine alfabetica

Edited by Diana2198

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...