Python 3 Programming Tutorial - OS Module

preview_player
Показать описание
In this video, we cover the OS module with Python 3. The main purpose of the OS module is to interact with your operating system. The primary use I find for it is to create folders, remove folders, move folders, and sometimes change the working directory.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

While watching this I took it upon myself to make a infinite loop that endlessly created folders. I got to over 250, 000 in like 10 seconds.. I have a lot of regret.

Love the tutorials btw keep it up!

Anthonyn
Автор

this tutorial is 8 years older and still better than today's new tutorials! finally found something useful!

elifkarabulut
Автор

started learning python 2 months ago, in the begining thought this shit ain't for me, too hard to learn blah blah blah
but did not give up and pushed hard thanks to Sentdex and other youtube videos.
Thank you sentdex, you kept the flame on!

leooel
Автор

Hello sentdex! Thank you very much for making these videos! Your videos have helped me a lot, as someone new to Python! Thank you for putting in the time to make these!

tymothylim
Автор

This was very useful, I thank you kind sir. I’m working on a upgraded version of command prompt as a side project cus I’m sorta new to python and I learnt a lot from your video, thanks bro keep up the great work

jgrice_tech
Автор

Neat and clean and enough for most of us.

stickercode
Автор

I know this comment is super late but I am creating a program using this to make a template folder for a web project, so it will have a named folder of the users choice, they can name the HTML and CSS file and it will create them and store them in the correct folders along with folders for other necessitates such as images and Javascript code. My question is how do I change the target directory so that it doesn't create the template folder in the same directory as the program?

Love this series btw so happy I found your channel

IamTiernO
Автор

hi, im trying to copy data (grades of the students for a certain subjects) from excel file to another program (i dont know what code it was built on, and its a program specifically made for inventory of grades ). We are using that program to encode grades, change, grades, submit grades, etc. What i want to do is lessen this execution (alt +tab, enter grades, enter, doing this all over again) that all we have to do whenever we copy grades from an excel file to that program. I want it to have a one time click and boom all the grades for all weeks, and two exams of each student for many subjects, to be instantly copied to that program. Im learning python to solve this problem. I hope ill get some help guys. [for the students :)]

animalslife
Автор

Man your tutorials are sooo dayum cool....
Thank you so much for sharing with us...

arjunkashyap
Автор

harrison, for some reason when i run os.getcwd() when I have anaconda open it runs properly and tells me where the file is. but when i want to double click it and my editor is not open it throws a error saying that i don't have permissions. and it's because the os.getcwd() is not returning the correct path it is actually returning somethings like: C:\Windows\system32
Do you know how i can fix this? thank you.

tomasemilio
Автор

Thank you for this video! It was a great tutorial to get familiar with the basics of os!

tymothylim
Автор

It's August 15, 2022 5:49 pm est. Wondering why you keep your desktop icons in a folder instead of hiding them.

vice
Автор

Hey sentdex!!!, Thanks for the short tutorial. I need to know which software you are using to Python scripts. And is there any way to import a file into some other applications like Maya. Please let me know

RaajKanchan
Автор

So, what if the directory you want to delete via 'rmdir' has items in it. How do you go about deleting that directory and all of its sub folders and items? Have an example for that???

FRIENDSofCAP
Автор

why we import OS first I need to it and is it really necessary.Apart from create folders, remove folders, move folders, and sometimes change the working directory what is the use

ritesh
Автор

hi
coul you do one about telnetlib or paramiko ?
Thanks for the videos !

felipemedina
Автор

please prepare, the router commands are write on python script's using py. serial module

prasadg
Автор

os.startfile() does not work on Mac OSX what should I do instead?

grantcox
Автор

I am looking in the help file for the module and i found a command called abort()... It says that it Aborts the interpreter immediately and 'Dumps core' or otherwise fails in the hardest way possible on the hosting OS. Im scared given that i have a feeling this means it takes your CPU to the blue screen of death. Please tell me im worng.

Captain.Mystic
Автор

Can you make videos where you do more indepth coding? Like intermediate level challenges? I would love to see those :) You explain things so well.

Lowzenza