What are Python modules? 📨

preview_player
Показать описание
#python #tutorial #course

00:00:00 intro
00:00:19 help("modules")
00:01:01 import x
00:01:28 import x as y
00:01:55 from x import y
00:02:17 example
00:03:51 create a module
00:06:11 conclusion

import example

print(result)

pi = 3.14159

def square(x):
return x ** 2

def cube(x):
return x ** 3

def circumference(radius):
return 2 * pi * radius

def area(radius):
return pi * radius ** 2
Рекомендации по теме
Комментарии
Автор

# main.py
import example

result = example.pi
result = example.square(3)
result = example.cube(3)
result = example.circumference(3)
result = example.area(3)

print(result)

# example.py

pi = 3.14159

def square(x):
return x ** 2

def cube(x):
return x ** 3

def circumference(radius):
return 2 * pi * radius

def area(radius):
return pi * radius ** 2

BroCodez
Автор

How it is possibile that so less people watch this great tutorials, when the channel has over 650k subscribers?

krzysiekkrzysiek
Автор

Bro you are the best instructor There is no other youtuber teach us like you. Keep it up. I love you.

kusalechisa
Автор

Thanks!!! I am an older person that learned basic C/C+ coding 35 years ago. Some concepts of Python are difficult for me to comprehend - especially from on line learning. You are making that easier!!! All I'm looking to use Python for is intro SBC programming another topic content poor in the webcast world. Hopefully watching your videos will help. Right now I trying to get a clearly defined conceptual understanding of Libraries, Modules, Subroutines and Functions and their interrelations, if any. Any help would be appreciated. I have to think there are a lot of us out there looking for this level of understanding. Regards.

PaulMasucci
Автор

God bless you bro code, I love your method of teaching..more win

salaudeenabidemiibrahim
Автор

I've learned a lot from ur vids BRO! thank you❤️🍀

shavindasilva
Автор

Bro, you're amazing! Thank you <3

johnsally
Автор

Omg you made learning python so easy !

chemistrybynr
Автор

Please post more python tutorials. thank you so much

mccauleybacalla
Автор

Great Explanation, Thanks for this video

alwinvj
Автор

Thanks man, this guy helps me get through college lol

Breww
Автор

Bro, you saved my life. Keep up the good work.

edvaniodas.calueto
Автор

Hi Bro, your videos have been really helpful for revising my rusty python!!! I was wondering if you or anyone reading the comment has a text file of all the commented notes summarising the video at the start of every video. If someone does then it would be great to have it saved for whenever i need to refer to it.

rajchheda
Автор

Where’s that __init__.py at bro? Came here for that explanation, leaving devastated and unable to understand __init__.py. Awesome vid. Add that init!! Lol

znacly
Автор

Radhe Radhe
Sanatan Hi Satya Hai
Jai To All Gods & Godesses
Jai Baba Farid Ji
Jai Radhaswami Baba Ji

aijazbirsfun
Автор

Fantastic tutorials bro. Quick question for you. Smack dab in the middle of the video, line 9 you typed "a, b, c, d = 1, 2, 3, 4, " then you performed math using the letters but the program seemed to know what number each letter was assigned.

This is a new concept to me. Would you be able to point me to a video or explain what it's called or what exactly was taking place there?

TheMotorcycleBoss
Автор

would u ever do a tutorial on android studio?

DiamondMan
Автор

I wanted to know about "help modules" and "import"

craftrumzen
Автор

If you import the whole module doesn't it decrease the speed of the code?

VAIBHAVMALHOTRA
Автор

Please make nodejs & Django course

abumursad