Python math functions 🧮

preview_player
Показать описание
python math functions tutorial example explained

#python #math #functions

import math

pi = 3.14
x = 1
y = 2
z = 3

print(round(pi))
print(abs(pi))
print(pow(pi,2))
print(max(x,y,z))
print(min(x,y,z))

––––––––––––––––––––––––––––––
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

import math

pi = 3.14
x = 1
y = 2
z = 3

print(round(pi))
print(math.ceil(pi))
print(math.floor(pi))
print(abs(pi))
print(pow(pi, 2))
print(math.sqrt(pi))
print(max(x, y, z))
print(min(x, y, z))

BroCodez
Автор

I'm learning python from Uzbekistan. This video really useful for me. Thanks )!

ilkadavronov
Автор

bro your content and the way you present is great
Specially the start

shreyakanodia
Автор

Problems to practice from this video -

1. Round a number to its nearest full integer.
2. Round a number up to its nearest integer.
3. Round a number down to its nearest integer.
4. Round a number to its absolute value.
5. Raise a base number to a given power.
6. Find the square root of a number.
7. Find the largest number among a group of values/variables.
8. Find the smallest number among a group of values/variables.

sajibmannan
Автор

Thank you, this helps me a lot in learning Python Math Function

ledibapril
Автор

Bro Code Thank you for this full python tutorial and now I can freely create my own program
Thank you for teaching :)

muhiddinergashev
Автор

Hello Bro Code, I'm messaging not actually to purchase anything but to let you know that I enjoy learning from you. I wish you can mentor me to be a programmer just like you Bro. I have been trying to reach you from all the comments section in your YouTube videos. Please reply as you like a special gift from God to help me in programming. I have spend like 6 months trying to find a tutor that can help me be a programmer until I accidentally found you. Thanks man for every videos out there on YouTube. Once again thank you very much for your efforts and resources. Love from Sierra Leone, West Africa.

farahdoekoroma
Автор

I haven`t found this useful, but I like the format

nerpa_severnaya
Автор

About the max and min
Is there a way to make the output the letter instead of numbers
Eg x = 2
y = 3
print (max(x, y))
Terminal Output : y
I hope I get answered

obcodelab
Автор

Bro, You are just great!!! Thanks Bro

shrirangjoshi
Автор

u are the best
really enjoying ur classes
i want to be a mobile developer

nftclinton
Автор

Im leaving a comment so the algorithm will think its a good video..

risukendensetsunojutsu
Автор

Thank you bro, you helped me a lot :) !

ΧρίστοςΑντωνίου-φο
Автор

Bro, that's excellent, thanks for all

paramenide
Автор

i've been avoiding this for like 4 days, and its not hard at all.. i think i just felt intimidaded by maths lmao

jungkookbutbald
Автор

Aren't some of this by default in python? For example max, min, abs, and you can floor with //
You can do them without importing math

burt
Автор

im commenting cus he told me to do so. also thx for vid

nadat