You have been using types this whole time. Strings. Integers. Lists. Dictionaries. Every one of those is a type. And they don't just hold data. They also come with built-in behaviors. Strings have .upper(). Lists have .append(). Dictionaries have .get(). Now here is the question. What if the type you need doesn't exist yet? What if you want a Student type that holds a name, age, and scores, and al
Build Your Own Types: Classes Explained Simply
Akhilesh·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.