Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Sorting a Dictionary in Python

4 min readNov 29, 2020

--

Photo by Markus Spiske on Unsplash

Introduction

sorted() function

sorted(iterable, key, reverse)

Note: No matter what iterable is passed in to the sorted() function, it always returns a list.

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Luay Matalka
Luay Matalka

Written by Luay Matalka

Lead Machine Learning Engineer, specializing in MLOps, with a passion for teaching.

Responses (3)