May 27, 2023, 4:22 p.m. | Tasnim Ferdous

DEV Community dev.to

In most cases, sorting is a simple task but there are occasions when the data is a bit complicated and python provides elegant way to handle those scenarios. So we will look at a complex scenario in this article





Object structure





With class definition



class Laptop:
def __init__(self, cpu, ram, ssd) -> None:
self.cpu = cpu
self.ram = ram
self.ssd = ssd

A = Laptop( …

article cases cpu data definition look objects programming python sorting ssd tutorial

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York