Python 3 Lesson 14: Save & Load Data

preview_player
Показать описание
Writing to a .py file and loading back in the values.
Рекомендации по теме
Комментарии
Автор

Tysm this is all I needed for my programming project in school! I was trying to store user information but I failed multiple times, this really helped 10/10 thank you again.

gamergotdis
Автор

I never would have thought of using a python extension over a text extension to save my program data. Perfect! Saves so much time not having to parse every entry. Nice.

CLyon-ccjp
Автор

thx you so much you helped me with a problem the was happening for 2 day FREAKING 2 DAY thx you, you solved my problem :)

faisaltaher
Автор

Thank you so much man, so simple and easy to understand.

Nezuzo
Автор

tysm u make it so easy to understand and save my time

richitomiau.
Автор

This is super tedious if implemented even on a small text based game but its good to see there is a way of getting it done.

robertovargas
Автор

Thanks a lot!! This was a way of saving user data permanently! Thanks again!

ashmeepragnaroy
Автор

THANK YOU!!! I have been trying to figure out how to do this and literally every other tutorial was just too complicated for my small brain.

dofnithedope
Автор

If you have separate def’s it gives a name error. Is their a fix for this?

EJStudios
Автор

Thx, it helped a lot, especially I didn't have any success before. Every video or post I find only shows how to write a sentence, not full variable

zeperoxx
Автор

thanks a lot this helps with my text based boss fighter

BiggestNaviaFan
Автор

How can I save and load a string (name = "KTZ") because I can't put the "" in the f.write function. Please help.

ktz
Автор

I can’t thank you enough. Thanks you so much. You have saved me literally hours more of stress.

I’ve tried to make multiple save files but it always gave me a error, is there a way?

corn
Автор

How could I delete what was on the second file? Like in this example, if I wanted to delete the health from the Savytime.py file?

ohtych
Автор

thank you so much i look a lot for that

quirkychamp
Автор

Rafy-Ivan Morales
0 seconds ago
I'm a new student trying to learn, so I can become a programmer with python and I have a project on how to make a port scan.

So far I already make a port scan with Python3, and it scans fine, give a date and everything working good so far.

I see on your video tutorial you give example on how to send and receiving data.

I would like to ask for your advice if you can and guide me on how I will add this 3
in a Python script, I have:

2. System should look for all the ports between the range of 1 to 1025
3. If the Ports is open, it should create a file and add an entry for port number
4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
due to any other error, you need to write that exception into the same file.


Thank you and Merry Christmas.

rafy-ivanmorales
Автор

Man you are really pro, i have a Q Can you tell me how to save a word like True False value in py file ?

ifaisalne
Автор

How do I make it so everytime I run the command, it sends how many times I have ran the file?

Greg
Автор

How do you check if a file exists? Do you use a try and catch and open a file for read? Does that work?

sandpaperunderthetable
Автор

Thanks I'm currently working on a text based os called red warp

dorgan