From the course: Effective Serialization with Python

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: repr and read pickle

Challenge: repr and read pickle - Python Tutorial

From the course: Effective Serialization with Python

Start my 1-month free trial

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