Blog Python Tips etc...

Card image cap

Sort

Sorted It builds a new sorted list from an iterable. Example python li = [3, 5, 2, 9, 0, 4] li.sort() print(li) [0, 2, 3, 4, 5, ...

Read More
Card image cap

Slice

String Slices It is also useful to extract larger pieces of a string than a single character. That brings us to slices. Example pytho...

Read More
Card image cap

Enumerate

Enumerate Enumerate is really useful function. It returns an enumerate(index) object. Example python names = ["a", "b", "c", "d"]...

Read More

I'm Haru. Senior Software Engineer / Pipeline TD in Montreal, Canada.
Read More