The sorted function is a built-in Python function that sorts the elements from a container you pass into the function, into a list. If you want the container to continue being the same type it was originally, say tuple for example, you would have to wrap the call to sorted in the tuple constructor function . sorted is one of Python's 71 built-in functions. It is recommended that people just starting to learn Python watch this video.
Subscribe If You Enjoyed: https://www.youtube.com/@jakubication...
Previous Function To Learn (slice): • slice Function in Python | Master An Old A...
To learn more about the built-in functions available to you in Python, check out this playlist: • Python: Built-in Functions
#codingforbeginners #programmingbasics #pythontutorial
Sur cette page du site, vous pouvez voir la vidéo en ligne Python sorted built-in Function durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Jakubication 13 juin 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 49 fois et il a aimé 1 téléspectateurs. Bon visionnage!