One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there arenβt really any restrictions.
With data classes, you donβt have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.
In this course, youβll learn how to:
- Define your own data classes
- Add default values to the fields in your data class
- Customize the ordering of data class objects
- Work with immutable data classes





