Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write Python code and create four variables. a) A list containing the following: Amy Rue, John Doe, Jim Schaffer b)A list containing the addresses:

image text in transcribed
1. Write Python code and create four variables. a) A list containing the following: "Amy Rue", "John Doe", "Jim Schaffer" b)A list containing the addresses: "1234 Ali's lane", "345 John's address", "No known address" c) Today's temperature as float: 34.25 d)Today's date (use datetime object) 2. Write a method called pickleDume which takes the four parameters and pickles them to the file called 'pickle pik' - the four parameters are listed above from a through d 3. Write another method called pickleload which reads the name of the file pass as a parameter and simply loads the pickle file and prints the contents of the pickle file. 4.Call both the methods in your python code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secured Finance Transactions Key Assets And Emergin Markets

Authors: Paul U Ali

1st Edition

1905783108, 978-1905783106

More Books

Students also viewed these Finance questions