All language subtitles for 5. Math Functions

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian Download
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,660 --> 00:00:01,730 Welcome back. 2 00:00:01,740 --> 00:00:05,670 Let's continue our understanding of int and float. 3 00:00:05,780 --> 00:00:12,320 We talked about the idea of these two data types and how we can use operations on them that we're familiar 4 00:00:12,320 --> 00:00:18,500 with from math class plus a few ones that maybe we haven't seen before such as modulo or the double 5 00:00:18,500 --> 00:00:23,670 slash or the double multiply for the Power of Now. 6 00:00:23,700 --> 00:00:30,390 This is really cool because we can get our computers to do well math for us like a calculator right 7 00:00:31,440 --> 00:00:37,070 but a programming language also provides for us different actions that we can perform. 8 00:00:37,380 --> 00:00:44,140 Now besides these ones we also learned that there's a type action that we can take. 9 00:00:44,130 --> 00:00:51,360 There's a print action that we can take but there's also specific math type functions that enter and 10 00:00:51,360 --> 00:00:56,600 float are able to use that are built into python. 11 00:00:56,660 --> 00:01:01,920 Now these are called well math functions and functions. 12 00:01:02,000 --> 00:01:08,940 Something we'll talk about later on are these actions that we've been talking about remember our diagram 13 00:01:08,940 --> 00:01:09,790 here. 14 00:01:09,870 --> 00:01:15,230 We're starting to learn about the data types and the actions that we can perform on them. 15 00:01:15,240 --> 00:01:21,870 Now in most programming languages these actions are called functions and we have a whole section on 16 00:01:21,870 --> 00:01:22,230 them. 17 00:01:22,290 --> 00:01:26,940 But for now there's some functions that we can use. 18 00:01:26,940 --> 00:01:28,800 So this is a print function. 19 00:01:28,800 --> 00:01:38,070 This is a type function but there's specific math functions such as around and you see right away when 20 00:01:38,070 --> 00:01:47,200 I type Ripple is a tool like an idea that hints and tells us what we can add so says round and give 21 00:01:47,200 --> 00:01:51,190 me a number and maybe an digit. 22 00:01:51,330 --> 00:01:53,110 But let's just worry about the first one for now. 23 00:01:53,400 --> 00:01:57,510 So around if I do three point one and I round here 24 00:02:00,760 --> 00:02:01,640 two. 25 00:02:02,010 --> 00:02:03,470 Well that's not right. 26 00:02:03,490 --> 00:02:04,010 Right. 27 00:02:04,050 --> 00:02:11,220 That's actually the result from up here because we need to also tell it to perform with a function of 28 00:02:11,310 --> 00:02:12,420 print. 29 00:02:12,690 --> 00:02:16,810 Hey print to the screen whatever the result of this is. 30 00:02:16,960 --> 00:02:21,280 And just to make things easier to see I'm going to comment this out. 31 00:02:21,330 --> 00:02:26,760 So I'm just selecting everything and then pressing command slash or if you're on Windows control slash 32 00:02:27,300 --> 00:02:37,260 if I click Run I get three because I'm rounding down the number so let's say it was three point nine 33 00:02:37,830 --> 00:02:46,570 I click and I get four again I'm rounding the number another math function that's built into python 34 00:02:47,290 --> 00:02:56,560 is something called a B S and you see right away that I get a B.S. here and a B.S. returns the absolute 35 00:02:56,590 --> 00:03:03,370 value of the argument and again for those that aren't too familiar with math an absolute value simply 36 00:03:03,370 --> 00:03:05,740 means well no negative numbers. 37 00:03:05,740 --> 00:03:10,340 So an absolute value of negative 20 is 20. 38 00:03:10,700 --> 00:03:15,520 And now because we know about math functions I can start Googling right. 39 00:03:15,610 --> 00:03:21,490 I can say hey I'm a python programmer and I want to learn about math functions well I can go Python 40 00:03:22,450 --> 00:03:28,860 3 math functions and look at that right away. 41 00:03:28,860 --> 00:03:33,560 Google tells me that there is a ton that we can use. 42 00:03:33,660 --> 00:03:35,630 You don't have to memorize all of these. 43 00:03:35,670 --> 00:03:39,890 As a matter of fact some of these I've never ever used in my programming career. 44 00:03:40,230 --> 00:03:44,300 But it's good to know that they have these tools available to you. 45 00:03:44,630 --> 00:03:50,250 And as a programmer this is something that you'll have to get used to the idea that you won't actually 46 00:03:50,250 --> 00:03:59,760 memorize every single action that we can take for each data type because some of these are very rarely 47 00:03:59,760 --> 00:04:00,180 used. 48 00:04:00,180 --> 00:04:02,340 Some of them you'll never use in your career. 49 00:04:02,340 --> 00:04:05,750 The key is to understand how to google them how to find them. 50 00:04:05,940 --> 00:04:10,650 And throughout this course I will show you the important ones that you're going to see over and over 51 00:04:10,920 --> 00:04:17,840 and over but as a way for you to develop as a programmer at least you know that this is how you look 52 00:04:17,840 --> 00:04:24,980 for answers and find out that hey there's different math functions that we can use with numbers. 53 00:04:24,990 --> 00:04:25,380 All right. 54 00:04:25,480 --> 00:04:28,580 Let's take a break and continue in the next video by. 5565

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.