sorted() function is used to sort the elements in a Tuple

sorted() function is used to sort the elements in a tuple, e.g. in ascending order of increasing values for integers or floats, or alphabetical order for strings.

Day 69 [November 14, 2025]

I need to buckle down, as I’m still lagging on day day 3 &am…


This content originally appeared on DEV Community and was authored by Onaolapo-11

sorted() function is used to sort the elements in a tuple, e.g. in ascending order of increasing values for integers or floats, or alphabetical order for strings.

Day 69 [November 14, 2025]

I need to buckle down, as I'm still lagging on day day 3 & 4 goals, "Day 3-4: Control structures (if-else, loops)", as well as day 5 (and 6) goals, "Day 5-6: Functions and modules", and Day 7 target (exercises) (Meta AI, personal communication, August 8, 2025). If I haven't covered this, I can't make progress on day 8 - 68 goals.

Goals:
As extracted from the 'Python for Software Development' textbook by Halvorsen (n.d.):

  • Plotting in Python ✅
  • Subplots✅
  • Exercises✅
  • If ... Else
  • Arrays
  • For Loops
  • Nested
  • For Loops
  • While Loops
  • Exercises
  • Creating Functions in Python - Introduction
  • Functions with multiple return values
  • Exercises
  • Creating Classes in Python
  • The init () Function
  • Exercises
  • Creating Python Modules
  • Exercises

Notes:
Python for Data Science, AI & Development Course (IBM) (Santarcangelo, n.d.):
Module 2: Python Data Structures

  • Lists and Tuples
  • Dictionaries
  • Sets

Tuples:
sorted() function is used to sort the elements in a tuple, e.g. in ascending order of increasing values for integers or floats, or alphabetical order for strings.

Summary:
sorted() function is used to sort the elements in a tuple, e.g. in ascending order of increasing values for integers or floats, or alphabetical order for strings.

References:

  1. Halvorsen, H. (n.d.). Python. https://halvorsen.blog/documents/programming/python/python.php#python4

  2. Santarcangelo, J. (n.d.). Python for data science, AI & development [MOOC]. Coursera. https://coursera.org/learn/python-for-applied-data-science-ai


This content originally appeared on DEV Community and was authored by Onaolapo-11


Print Share Comment Cite Upload Translate Updates
APA

Onaolapo-11 | Sciencx (2025-11-14T22:34:23+00:00) sorted() function is used to sort the elements in a Tuple. Retrieved from https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/

MLA
" » sorted() function is used to sort the elements in a Tuple." Onaolapo-11 | Sciencx - Friday November 14, 2025, https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/
HARVARD
Onaolapo-11 | Sciencx Friday November 14, 2025 » sorted() function is used to sort the elements in a Tuple., viewed ,<https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/>
VANCOUVER
Onaolapo-11 | Sciencx - » sorted() function is used to sort the elements in a Tuple. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/
CHICAGO
" » sorted() function is used to sort the elements in a Tuple." Onaolapo-11 | Sciencx - Accessed . https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/
IEEE
" » sorted() function is used to sort the elements in a Tuple." Onaolapo-11 | Sciencx [Online]. Available: https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/. [Accessed: ]
rf:citation
» sorted() function is used to sort the elements in a Tuple | Onaolapo-11 | Sciencx | https://www.scien.cx/2025/11/14/sorted-function-is-used-to-sort-the-elements-in-a-tuple/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.