Python Tutorial 14: Saving and Reading Data Files With Pickle

preview_player
Показать описание
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video we show step-by-step instructions on how to us Pickle in Python to save and read data files. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming
Рекомендации по теме
Комментарии
Автор

I started learning programming eight months ago since I started studying to be an engineer, before then i knew nothing about programming whatsoever and it's one my drawbacks.
I was worried it would be too hard to learn, but your videos help me A LOT, and I'm currently watching the Arduino tutorials.
Learning a lot from you, thank you so much

yehiaayoub
Автор

"We are going to dump nuts" made me have to pause the video 😂. I'm just glad I didn't disrupt the rest of the class. Top lessons as always. Thanks Paul

miken
Автор

I am legend. I had to go back to lesson 3 to figure out how to address an 2-dimensional array. Very interesting lesson.

jabber
Автор

I am legend! Discovered your set of Python tutorials yesterday and I'm already up to lesson 14. I started commercial programming in COBOL in 1975, a very different world. Any current sbc could eat those 'mainframe' monsters for breakfast in terms of processing power, memory and storage. Amazes me what we could do on a computer with 256KB memory and 240MB of hard disk. Many platforms and programming languages / environments since. I'll be buying the Arduino kit soon and will be looking at your Arduino tutorials even though the pure electronics side of it will be a mystery to me. Haven't looked at electrical theory since senior high school days, (but I did win the senior physics prize for that year so there's some hope for me yet!).

martinjones
Автор

When there will be new Arduino lessons?, or video(s): like - "How to built drone on Arduino"?. Thanks for your lessons. Thanks for teaching us programming languages. My future work= Programmer.

Pikuto
Автор

Thankyou sir for your lesson, I am proud of myself I solved pickle homework and this was the first ever homework i solved on my own. Thankyou sir I AM LEGEND may god bless you.

pateekdarnal
Автор

I have enjoyed your lesson and thankful that I came across it. I have been using a python book but came across a section where they don't explain it too well, so I went online and I found you. Thanks for giving clear instructions. I will start looking at your tutorials and also donating money

qneal
Автор

Boom!!! I can't believe it I am legend! All thanks to our great teacher Paul McWhorter!

patfacunla
Автор

pickle is something my students really need to embrace so they'll be watching your fantastic lesson. Thanks Paul!

hughpatterson
Автор

I finally got it. Used all the stuff taught plus my brain to get it done. I learned a lot. Thank very much.

andylaurie
Автор

Hey Paul. I'm really enjoying this series. I am in awe of your teaching style and have learnt a lot form your excellent skills. I previously worked through quite a bit of your Arduino classes. Now looking into Python and slowly getting there. Just completed the homework for this session. Had all the right ideas but lacking in the syntax memory department!
Looking through my previous work helps. Even discovered how to embed a variable in an input function 🙂
I'll follow this series through to it's conclusion. Thanks for all you do

robinedminson
Автор

Enjoyed the lesson. I had not known of Pickle, been using the open, 'w', 'r' and close. This simplifies the work. I hate that about your arrest, especially since it was the previous owner who had those but at least that's behind you. Stay safe and enjoy whatever comes your way.

opalprestonshirley
Автор

I am legend.... (and I am John Galt!). I've been programming for 45 years, and this is my first exposure to Python. I've also worked through your Arduino courses. Using that class, I'm replacing a blown stepper motor controller on a older telescope with a Nano. Very cool stuff.

diessos
Автор

I AM LEGEND!!!, this was really a fun lesson. I did my homework on my own. I'm used to working with datasets so this was pretty simple for me to map out my file. Thank you for showing this and I look forward to seeing your solution next week.

ottawakravmagaacademy
Автор

I am legend! Took a short while to figure it out but thanks to your most excellent teaching of past topics it turned out to be easier than I thought!

scouscoustm
Автор

Hi Paul... another excellent lesson.... I didn't do the homework... sorry... but.. I DID apply what I learned here to debug my headless GPS project by pickling the data and saving it to the SD Card .. .and then writing another little program to READ and display the data after a test drive . This helped me "see" what my GPS program was reading and processing... and I was then able to debug and complete the project. I have decided to head on back to the RPi 4 projects / lessons.... ( for now ) ... Thanks again, Paul... God bless you, Brother.

davidschnider
Автор

Mandatory legend. To give myself a bit of freedom with student data, I created a student class. For writing and reading I used json. I had to convert the classes to dicts when writing, but luckily you can just apply var() to them before adding to the array. It was a bit of pain to find the var() solution, but that was actually the hardest part!

Love the lessons. Keep up the great work!

vladmelnic-
Автор

We regret to inform you that there is no room available for folding lawn furniture as the designated space is currently filled to capacity with LEGEND!

boydrogers
Автор

Love your explanation, easy to understand for beginner.

sarahz
Автор

I AM LEGEND, Thanks for the great tutorials, it is by far the best I have ever done!

ulrichvantonder