From the course: Intermediate Python for Non-Programmers
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Pickling Objects - Python Tutorial
From the course: Intermediate Python for Non-Programmers
Solution: Pickling Objects
- [Instructor] Alright, welcome to your final challenge here in the course. As far as CoderPad is concerned, we are going to practice doing some de-pickling that we have learned earlier. So this is definitely the most challenging challenge in the course and it's saved for last. So hopefully you had fun attempting this and got a great solution. Here is how I attacked the problem. So ultimately inside of this variable called the_data that gets passed into depickle_to_String, our function here on line 10, we have to de-pickle it and then take that information that should be a list of words and put it into a string with some spaces between it. So a couple of steps here and ultimately it's going to go into this variable called the_string. So step number one is we need to depickle this information. And so I'm going to create a new variable here that I'm going to call word_list. This should be the object that's coming…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.