Math in Python is easy + exercises 📐

  Рет қаралды 92,235

Bro Code

Bro Code

Күн бұрын

#Python #math #module
Python arithmetic operators and math module tutorial example explained
00:00:00 arithmetic operators
00:04:23 built-in functions
00:06:43 math module
00:08:44 exercise #1 circumference of a circle
00:10:30 exercise #2 area of a circle
00:12:00 exercise #3 hypotenuse calculator

Пікірлер: 93
@annoyingprecision2487
@annoyingprecision2487 Жыл бұрын
Absolutely delightful video. Thanks a lot for sharing.
@Alltopicreader
@Alltopicreader Жыл бұрын
How relatable do you want the thumbnail to be? Bro Code: Yes
@luiseduardo8806
@luiseduardo8806 Жыл бұрын
How can you say that you have no friends by now you have gattered at least more than half a million of them
@TheBennestBen
@TheBennestBen Жыл бұрын
He's talking about you
@abirtg
@abirtg Жыл бұрын
@@TheBennestBen deadass
@cringenightmareintown4030
@cringenightmareintown4030 Жыл бұрын
@@TheBennestBen bozo
@itachu.
@itachu. 7 ай бұрын
​@@TheBennestBennah bro I support you for that one
@The_spaceguy
@The_spaceguy 3 ай бұрын
@@TheBennestBen looolll
@user-qh1rf6tm5u
@user-qh1rf6tm5u 6 ай бұрын
Wonderful to learn python from your videos. You teach so well in an easy way. Sir can you please give some exercises as a daily lesson for beginners.
@qartveli.generali
@qartveli.generali Жыл бұрын
bro is best in youtube i can say
@fantomas44736
@fantomas44736 Жыл бұрын
very nice lesson.
@61TS018
@61TS018 Жыл бұрын
Very goood
@youtube_new_update_sucks
@youtube_new_update_sucks Жыл бұрын
If 'Friends = 0;' So '100 friends' means '0 * 100 = 0'. So it's still 0 then.
@dhruvsharma3522
@dhruvsharma3522 11 ай бұрын
100 friends means friends = 100
@Akash-wi4yz
@Akash-wi4yz 9 ай бұрын
the start was dark💀
@gancuber4204
@gancuber4204 6 ай бұрын
@@Akash-wi4yz friends = -2 tho 💀💀💀💀💀💀💀💀🗿🗿🗿🗿🗿🗿🗿🗿
@niceballz243
@niceballz243 Жыл бұрын
Adding stupid features to this simple exercises makes them really fun tho. import math Title = "Pizza circumference and area calculator" print(Title.title()) diameter = input("Please enter diameter of your pizza: ") flavour = input("Enter your pizza's flavour: ") if flavour == "Hawaii" or "Pineapple": print("How the fuck can you eat that?") if bool(diameter.isdigit()) == False: print("This is not a diameter of your pizza >:(") if bool(diameter.isdigit()) == True: diameter = int(diameter) r = diameter/ 2 C = 2 * math.pi * r A = math.pi * pow(r,2) C = round(C, 1) A = round(A, 1) print(f"The circumference of your {flavour} pizza equals: {C} cm.") print(f"The area of your {flavour} pizza equals {A} cm^2.") Third Program import math Title = "Weird triangle thingy calculator" print(Title.upper()) side_a = input("Enter first side of a triangle: ") side_b = input("Enter second side of a triangle: ") if bool(side_a.isdigit()) == False or bool(side_b.isdigit()) == False: print("Cant make math out of that.") print("Both sides have to be numbers") elif bool(side_a.isdigit()) == True and bool(side_b.isdigit()) == True: side_c = math.sqrt(pow(int(side_a), 2) + pow(int(side_b), 2)) print(f"The third side of this triangle equals {round(side_c, 2)} cm")
@AestheticBlue13
@AestheticBlue13 11 күн бұрын
I like trying ppl's codes :)))
@Curious_Clover
@Curious_Clover 3 ай бұрын
3:37 Is an amazing way to explain remainders. Understood it right away.
@lucky_overdrive4426
@lucky_overdrive4426 Жыл бұрын
Thanks bro code I know very little about python and I have a project where I need to make a pizza ordering thing from scratch and this really helped so again thank you
@wmstram1
@wmstram1 Жыл бұрын
Watched it. Liked it.
@mehdismaeili3743
@mehdismaeili3743 2 ай бұрын
Excellent .
@GTV_367
@GTV_367 11 ай бұрын
We have half of friend😂 good informative vid too
@joncaldwell4753
@joncaldwell4753 Ай бұрын
Good job, thank you
@DailyDoseofSpace.
@DailyDoseofSpace. Жыл бұрын
Ended up in the loophole making myself create a sine and cosine rule calculator lol it was fun
@techbio6974
@techbio6974 Жыл бұрын
hellow bro code we need a video like how they connect front end website to back end using python give a full clarification as well as make a video that would really help for us
@PavanUthsara
@PavanUthsara Жыл бұрын
Superb
@jamilhfl
@jamilhfl Жыл бұрын
Love ❤ you for the exercise and explaining way. For you 🌷⚘🌹💯
@user-fc8vj5dy9g
@user-fc8vj5dy9g 7 ай бұрын
thanks bro!
@user-ace96plays
@user-ace96plays 8 ай бұрын
NICELY DONE BRO...❤5/106
@shaswatachowdhury9032
@shaswatachowdhury9032 5 ай бұрын
Thank you! :)
@user-rv8jk9dh1i
@user-rv8jk9dh1i Жыл бұрын
BRO you better then my teacher math😅❤
@bekturasanbekov1979
@bekturasanbekov1979 Жыл бұрын
thx 4 vid bro !
@Rekon-se6wv
@Rekon-se6wv Жыл бұрын
if friends == 0: if weed == 0: print('the hell is unavoidable, gg wp') else: print('You escaped the hellhole for a while, but it wont last for long') else: print('You are dreaming, wake up. This is not happening.')
@user-hr5nw3ip2b
@user-hr5nw3ip2b Ай бұрын
😂
@amayakohli5633
@amayakohli5633 9 күн бұрын
lmao
@Dunith_Munasinghe
@Dunith_Munasinghe Жыл бұрын
Thank you ❤️😊
@The_spaceguy
@The_spaceguy 3 ай бұрын
Bro said it was going to be confusing, but made it the easiest thing I’ve ever seen
@gamePlays9699
@gamePlays9699 Жыл бұрын
COOL!
@warp5532
@warp5532 Жыл бұрын
0:30 got me good, damn.
@rexoverwatch
@rexoverwatch 6 ай бұрын
nice bro
@PriyankSaini-ib4nq
@PriyankSaini-ib4nq Жыл бұрын
11:08 we can write the power as raidius**2 ? i tried it worked .
@AdobadoFantastico
@AdobadoFantastico Жыл бұрын
These are always so low key funny.
@dilshoddilmurodov6548
@dilshoddilmurodov6548 Жыл бұрын
best
@MohyDev
@MohyDev Жыл бұрын
I have always believed that education is the ultimate code to crack. Thanks to Bro Code, I have been able to unlock some of the most complex programming languages and computer science concepts with ease. Your videos have been instrumental in helping me level up my skills. So, from the bottom of my heart (and stack), thank you for being the best educational channel out there. Keep up the good work, Bro Code! Your dedication to educating the masses about programming languages and computer science has been truly inspiring. I would love to connect with you and learn more about your journey and how you became one of the best educational channels out there. again, thank you for being a constant source of knowledge and inspiration for us all. You're the real MVP, Most Valuable Programmer
@Jam.is.nice.
@Jam.is.nice. 7 ай бұрын
Stop copy pasting
@VZWK
@VZWK 6 ай бұрын
Robotic ass mf 🤖🤖🤖🤖🤖
@Abzarad
@Abzarad 2 ай бұрын
thanks Bro
@amiramhamado
@amiramhamado Жыл бұрын
عظيم
@penguinxed
@penguinxed Жыл бұрын
love you bro
@gancuber4204
@gancuber4204 6 ай бұрын
I have -2 friends yes
@aungshinthant5858
@aungshinthant5858 Жыл бұрын
Bro or Sir please upload REACTJS full course
@user-ux1hz9je9g
@user-ux1hz9je9g 6 ай бұрын
so when doing the exercises I stopped and just did the whole code ahead and then if I had issues I would unpause and watch if I couldnt trouble shoot. on 3rd exercise I got the same output but my code for finding c was different. A = 3 B = 4 c = math.sqrt(a**2 + b**2) OUTPUT: C = 5 Is there a situation where using math.sqrt (pow() + pow()) is better or is it just good practice?
@Fynn_Crypto
@Fynn_Crypto 6 ай бұрын
I coded ahed too and I used (pow() + pow()) just for practice and remembering the function. I think its just good for practice if you want to remember differnt math functions
@rossjohnson9984
@rossjohnson9984 7 ай бұрын
import math a = float(input("Enter value for side A: ")) b = float(input("Enter value for side B: ")) c = math.sqrt((a**2) + (b**2)) print(f"The hypotenuse, or C, is equal to: {round(c, 2)}cm") This is how I did this one before watching it through, it still works but it seems like extra steps?
@tezzla6358
@tezzla6358 Ай бұрын
sorry if this is a dumb question but what is "side a"?
@Lameless
@Lameless Жыл бұрын
Thumbnail is so true
@prag_un
@prag_un Жыл бұрын
at 5:51 we can write it as pow(y, 3) right?
@stergiospapach.1469
@stergiospapach.1469 9 ай бұрын
Yes
@abdulhannan-18
@abdulhannan-18 8 ай бұрын
Ceil (up by 1) vs floor (down by 1): x = 3.72246 y = 4 z = 5 print(x.__floor__()) 3 x = 3.12246 y = 4 z = 5 print(x.__ceil__()) 4
@attilalukacs2916
@attilalukacs2916 6 ай бұрын
Bro: "Currently you have 0 friends" That hit way too hard
@abdulhannan-18
@abdulhannan-18 8 ай бұрын
import math a = float(input("Enter a:")) b = float(input("Enter b:")) c = math.sqrt(pow(a, 2) + pow(b, 2)) print(f"c is: {c}") Enter a:3 Enter b:4 c is: 5.0
@zahraalemi1872
@zahraalemi1872 6 ай бұрын
🧡🧡🧡
@naphtalifurst4045
@naphtalifurst4045 Жыл бұрын
hi can you explain pid?
@tehblocky8067
@tehblocky8067 Жыл бұрын
699k subs, nice
@MicahUhl
@MicahUhl Жыл бұрын
no code this time???! can you paste it pls?
@akashdakrinayak3146
@akashdakrinayak3146 2 ай бұрын
Bro how to use trigonometrical equation in python
@KoenPol123
@KoenPol123 Жыл бұрын
You already made a full python course. Why do you make this tutorial? Btw Keep up the good work!!
@soyozzz
@soyozzz Жыл бұрын
He is updating the playlist with new good videos about the same, check "Python tutorial for beginners" playlist.
@KoenPol123
@KoenPol123 Жыл бұрын
@@soyozzz ok
@prag_un
@prag_un Жыл бұрын
I haven't completed that course yet so I'm not sure if there's exercises at the end of it. This tutorial has exercises which are helpful too.
@abdulhannan-18
@abdulhannan-18 8 ай бұрын
x = 3.12246 y = 4 print(round(x, 4)) 3.1225
@quentin_pilote7063
@quentin_pilote7063 8 ай бұрын
tip = if you dont want to type the modul all the time you can import all its content by "from math import *"
@Wisdom_77751
@Wisdom_77751 2 ай бұрын
import math Base=float(input("Enter the measurement of base:")) Perpendicular=float(input("Enter the measurement of perpendicular:")) hypotenuse = math.sqrt( pow(Base,2)+pow(Perpendicular,2)) print(f"The hypotenuse of the triangle is: {hypotenuse}")
@omorplush
@omorplush Жыл бұрын
you didnt have to roast me like that
@kacper1836
@kacper1836 Жыл бұрын
better look 😎 print(f"The area of the circle is: {round(area, 2)} cm\u00b2")
@purpletom_yt3138
@purpletom_yt3138 Жыл бұрын
W thumbnail
@user-zr9cb9nc9k
@user-zr9cb9nc9k Жыл бұрын
what about floor division??
@ericcartman2119
@ericcartman2119 Жыл бұрын
what about ghost division??
@melissast9237
@melissast9237 5 ай бұрын
10:29
@Jack231
@Jack231 23 күн бұрын
3:09
@FuelledByKanin
@FuelledByKanin Жыл бұрын
are fundraiser videos not recommended? I don't see your videos from my subscriptions.
@Zorahime29
@Zorahime29 9 ай бұрын
2:38 continue Edit:done!
@SmurQx-jr6uk
@SmurQx-jr6uk Жыл бұрын
im crying while watching
@Anonymationsthecoolanimator
@Anonymationsthecoolanimator Жыл бұрын
Bro the thumbnail💀
@user-tv7sf6yj1h
@user-tv7sf6yj1h 9 ай бұрын
Your channel is interesting but too fast so it's difficult to catch up to what you are teaching. i wish it was taught a little simpler and slower
@tezzla6358
@tezzla6358 Ай бұрын
late response but you can always play the video in ,75% speed or just pause the video to soak in what you just learned
@Curious_Clover
@Curious_Clover 3 ай бұрын
1:29 out of context 💀
@Curious_Clover
@Curious_Clover 3 ай бұрын
And then it's followed up by 1:39.
@Curious_Clover
@Curious_Clover 3 ай бұрын
2:20 😭
@Dan-xl6ip
@Dan-xl6ip 2 ай бұрын
+999999999 aura
User input in Python is easy + exercises ⌨️
13:04
Bro Code
Рет қаралды 90 М.
If statements in Python are easy (if, elif, else) 🤔
8:21
Bro Code
Рет қаралды 117 М.
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 19 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 72 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 30 МЛН
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,8 МЛН
1st Year Calculus, But in PYTHON
32:13
Mr. P Solver
Рет қаралды 121 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 440 М.
Software engineer interns on their first day be like...
2:21
Frying Pan
Рет қаралды 13 МЛН
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 246 М.
Lecture 1: Introduction to CS and Programming Using Python
1:03:30
MIT OpenCourseWare
Рет қаралды 538 М.
String methods in Python are easy 🧵
12:06
Bro Code
Рет қаралды 88 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 387 М.
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 19 МЛН