Python 3 Tutorial for Beginners #26 - Reading Files

preview_player
Показать описание
Hey gang, in this tutorial I'll show you how to open files and read the contents of them.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------
Other tutorials:

----- NODE.JS TUTORIALS

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

Your tutorials are awesome! Thanks for sharing your knowledge!

baharmoghtadaei
Автор

Coming from JS python looks like pseudo code but it works

Liproqq
Автор

Your tutorials are awesome. Could you please do a playlist on Django.

broken_arrow
Автор

simple and clear tutorial thanks a lot

ghofranedarragi
Автор

Your accent penetrates even the thickest skulls!

RameenFallschirmjager
Автор

Not sure if I am getting ahead of myself ... but ... how do you prevent the carrier return to be printed?

digisollabs
Автор

On Python Ver. 3.10.12 NameError: name 'sequence_filter' is not defined. Did you mean: 'sequence_filer'? ... using sequence_filer' makes the code work again

thravenpurple
Автор

while True:
print("Thanks you!")







I HOPE IT RUNS FOREVER.

amitsherman
Автор

the .close() doesn't allow the code to run on my python... it runs without the .close() but... with the .close at the end it says this: (I callied it rnd_txt) instead of ipsum_file)

rnd_text.close()
NameError: name 'rnd_text' is not defined

Tay-kyfi
Автор

Is the seek() based on character or position? You said character, but it looks like you were giving it a positional to start with.

Here is a for loop I made to go through the dna squence.
for line in lines:
if line[0][0] != '>':
print(line)

jeremybrews
Автор

I promis you with this and django i will create a game and ill tag u

YOBEAST-vyhg
Автор

I did exactly what you did.. but... i get this error: it comes from the last line...


AttributeError: 'function' object has no attribute 'lines'

any ideas?

Tay-kyfi
Автор

This must be an Alien DNA 😮😳, what kind of bases are this? 🏃‍♂️🏃‍♂️🏃‍♂️

otsogileonalepelo
Автор

That's a lot of different DNA bases. Mine only has four :(

eliashowe
Автор

Meh, the close() doesn't work in 2023

Dexterx
visit shbcf.ru