From the course: Effective Serialization with Python

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Challenge: repr and read pickle

Challenge: repr and read pickle - Python Tutorial

From the course: Effective Serialization with Python

Challenge: repr and read pickle

(upbeat music) - [Instructor] In rides.py, you have a definition of a Ride class. It has a start and an end, a distance, and the number of passengers. You need to add a wrapper to the class and then, you need to load rides from the ride.pkl file, which is in a Pickle format, and print each ride to the screen.

Contents