Python math functions

Python math functions

Bro Code

3 года назад

46,315 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bro Code
Bro Code - 18.12.2020 21:51

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))

Ответить
_penguin
_penguin - 22.11.2023 01:40

The math functions dont work (math.) Can you explain why?

Ответить
Ggheruha
Ggheruha - 16.08.2023 16:03

thanks a lot

Ответить
Tatiana Trofimova
Tatiana Trofimova - 02.05.2023 08:34

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

Ответить
Aadit Ponraja
Aadit Ponraja - 20.02.2023 04:20

comment

Ответить
zakaria_MA
zakaria_MA - 27.01.2023 17:06

Nice

Ответить
danny
danny - 06.12.2022 13:24

Whoever is reading this commit your life fully to Jesus because relationships, money, and sex will not satisfy you or save you. They will give you temporary pleasure but you get true joy from knowing that God is always on your side when no one else is. If you have a code you must have a coder and God wrote our code. So make a decision because 150,000 people die a day and you never know when your last day is.

Ответить
Diego Luis Arias García
Diego Luis Arias García - 03.10.2022 05:50

Thanks bro 👍👍👍

Ответить
Χρίστος Αντωνίου
Χρίστος Αντωνίου - 02.10.2022 12:33

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

Ответить
Ilka Davronov
Ilka Davronov - 20.09.2022 08:46

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

Ответить
BUDDERRAR
BUDDERRAR - 15.09.2022 18:29

noice

Ответить
Nada T
Nada T - 09.09.2022 13:03

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

Ответить
OB
OB - 08.09.2022 23:39

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

Ответить
Shrirang Joshi
Shrirang Joshi - 07.09.2022 17:19

Bro, You are just great!!! Thanks Bro

Ответить
jungkook, but bald
jungkook, but bald - 05.09.2022 23:09

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

Ответить
Linuso
Linuso - 25.08.2022 17:21

hi

Ответить
mallvi
mallvi - 17.08.2022 15:38

What if you wanted to make your code remember the added integer to a value, after finishing a loop?

Ответить
patrick banzon
patrick banzon - 23.07.2022 17:38

23/07/22, 10:38pm i was here

Ответить
Kemann
Kemann - 08.06.2022 13:15

Brilliant

Ответить
Benny Joseph
Benny Joseph - 29.05.2022 17:47

bro what happen when we add a decimal value for xyz like x =11,y=11.5 and z=14.75 then why it is only showing 14 and neglecting decimals

Ответить
Yiorgos Katopodis
Yiorgos Katopodis - 15.05.2022 02:08

Excellent!

Ответить
Noah Knight
Noah Knight - 12.05.2022 15:02

fart

Ответить
Lamorożec Stefan Kotlet
Lamorożec Stefan Kotlet - 18.03.2022 15:36

<3

Ответить
Isa geziyor
Isa geziyor - 12.03.2022 14:27

thank you

Ответить
Belugaaa
Belugaaa - 06.03.2022 15:04

Bro

Ответить
Za Warudo
Za Warudo - 26.02.2022 13:09

What is import math?

Ответить
NFTclinton Chronicles
NFTclinton Chronicles - 24.02.2022 15:31

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

Ответить
Mr.goldenweek
Mr.goldenweek - 14.02.2022 22:14

thx you help me so much

Ответить
Knight Wolf
Knight Wolf - 29.01.2022 19:05

print("Your the best Bro")

Ответить
Being ZERO
Being ZERO - 23.01.2022 09:46

INFORMATIVE!

Ответить
Default
Default - 22.01.2022 06:02

With these code, it will also help me in my math homework.

Ответить
Default
Default - 22.01.2022 05:59

I am glad I found this series! I got inspired in coding and I have been learning well!

Ответить
ECOPRO Cairns
ECOPRO Cairns - 19.01.2022 14:54

Bro, Your channel is a God Send! Thank you! However, I having trouble understanding how to add up and show user input totals in the console window. I can display daily totals, but not weekly totals. Can you offer any help or tell me which videos to watch? Thanks Bro 🙏

Ответить
Zharfa
Zharfa - 15.01.2022 12:34

thank a lot

Ответить
Muhiddin Ergashev
Muhiddin Ergashev - 04.01.2022 08:36

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

Ответить
Какагелди Тойлыев
Какагелди Тойлыев - 31.12.2021 14:35

Thank you

Ответить
BlueKiddo
BlueKiddo - 14.12.2021 13:08

bro is the best

Ответить
A C
A C - 03.11.2021 22:18

can someone help me? pls i have a problem with that: print(math.ceil(pi))
NameError: name 'math' is not defined

Ответить
Paraménide
Paraménide - 02.11.2021 00:35

Bro, that's excellent, thanks for all

Ответить
ZR07
ZR07 - 27.10.2021 17:27

goob work bro

Ответить
dinesh gautam
dinesh gautam - 27.10.2021 04:38

You are great bro....

Ответить
Isaac Paikkatt
Isaac Paikkatt - 26.10.2021 15:08

cool

Ответить
Jakewas
Jakewas - 19.10.2021 19:55

a

Ответить
Bhai Jet
Bhai Jet - 25.09.2021 14:11

i hope you will get 1M subs!!

Ответить
Mudit Rustagi
Mudit Rustagi - 06.09.2021 07:41

superb

Ответить
Derya Myradov
Derya Myradov - 05.09.2021 16:24

...

Ответить
Assierne
Assierne - 30.08.2021 18:49

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.

Ответить
KamakaZ37
KamakaZ37 - 30.08.2021 00:23

I learned something!

Ответить
Arc
Arc - 29.08.2021 19:31

Thank you for this

Ответить