Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

A sort of Pythonic bite

Aamir Mushir Khan
Python in Plain English
3 min readFeb 24, 2025

Photo by Alex Block on Unsplash
numbers = [3, 1, 4, 1, 5, 9, 2, 6]
result = numbers.sort()
print("Original list after sort():", numbers)
[1, 1, 2, 3, 4, 5, 6, 9]
print("Result of sort():", result) 
None

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

No responses yet

Write a response