How To Read A Text File In Python | Python For Beginners

preview_player
Показать описание
In this video I show you how to read a text file in Python using 'with open'

#python #pythonforbeginners #coding #howtocode #codingforbeginners #textfile #withopen
Рекомендации по теме
Комментарии
Автор

I came here because of your reply in the comments of video one and you earned my subscription but, I was asking how you can enter each line into The interpreter once printed.
I remember doing that in basic by simply printing CHR$(13) --the return key--- after printing each line to the console, if the line was a line of programming code it would be entered into memory and ran next. I used to do this when I was 10 years old on an Atari 400 as a means to create paging memory when the programs I would write or too big for the RAM on the computer, so I would read them off tape and run them one line at a time.
I see the potential of such a method for self-modifying code or ways to enter code easily into a new IDE.

petevenuti
visit shbcf.ru