import pickle

#          pickling a python object
# cars = ['Maruti Suzuki','Ferrari','BMW']
# file = 'mycar.pkl'
# fileobj = open(file,'wb')
# pickle.dump(cars,fileobj)
# fileobj.close()

file = 'mycar.pkl'
fileobj = open(file,'rb')
mycar = pickle.load()
print(mycar)
print(type(mycar))
49a262f3c5cb74b8fd0720b80f186c10cf0e3382
<mask token>

<mask token>
print(mycar)
print(type(mycar))

<mask token>
file = 'mycar.pkl'
fileobj = open(file, 'rb')
mycar = pickle.load()
print(mycar)
print(type(mycar))

import pickle
file = 'mycar.pkl'
fileobj = open(file, 'rb')
mycar = pickle.load()
print(mycar)
print(type(mycar))

import pickle

#          pickling a python object
# cars = ['Maruti Suzuki','Ferrari','BMW']
# file = 'mycar.pkl'
# fileobj = open(file,'wb')
# pickle.dump(cars,fileobj)
# fileobj.close()

file = 'mycar.pkl'
fileobj = open(file,'rb')
mycar = pickle.load()
print(mycar)
print(type(mycar))