Question: 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:
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
Get step-by-step solutions from verified subject matter experts
