Jan. 9, 2024, 3:30 p.m. | Ian Johnson

DEV Community dev.to

The next thing we will do is define the idea of a task using a class. Why do we want to do this? Quite a few reasons:



  • Python is an object-oriented language

  • Abstractions help us understand things as humans

  • It will be easier to test


To start, we will append the new class in todo/task.py:



class Task:
pass


This is a minimal implementation of the Task. pass tells the Python interpreter to do nothing. Without this, Python …

beginners class humans language making next object-oriented programming python tasks test tutorial will

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Lead Data Modeler

@ Sherwin-Williams | Cleveland, OH, United States