Python 3 Programming Tutorial: Math

preview_player
Показать описание
Math is a pretty popular topic, so we should probably learn how to do it in Python 3. Luckily for us, math is so very popular that it works extremely simply.

This Python 3 programming tutorial covers simple mathematics in Python 3.3.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

4:30 => 4+=1 won't work cause left operator which is (4) is static not 'variable'
but it would work with:
x = 4
x += 1

ivandrofly
Автор

Like your relaxed demeanor in the videos, not uptight, talking too fast, rushing etc. Very Good! Thanks

jackjones
Автор

Just the fact that you called it a pound sign and not a hashtag makes me like you more. I'm such a noob at all this but I really wanna learn. Thank for these tutorials, you break it down pretty simply

fratermunky
Автор

if you still don't know why the (1+3) in the file didn't not show when you ran the file. It was because you did not print it
 to the console. (although your program did calculate it!)

tobiasmattsson
Автор

I love tutorials where the guy just turns on the camera and starts talking and then procedes to just guess their way through the whole thing.

GrantSR
Автор

You probably have heard this a lot haha, no homo but I could listen to you teach and not get bored. I tried learning 10 years ago, from a tutorial a teacher asked me to try out and see if I enjoyed it. Probably thought I would be interested. The guys voice had me fallen asleep and bored. You sound motivated, excited not mumbling or rushing. The perfect teacher! The fact you also think of errors and tell is just an added bonus! Thank you, my first language at 25...Hopefully in the next 10 years I would have also learnt c++. So much to do, and seems like more fun than just playing a video game. And the use of Python in Maya are endless. I also do 3D modelling so Python is an all round amazing language to learn. How long do you reckon it will take to be an intermediate/advanced Python learner?

Hayri
Автор

2:15 durinng this bracket if you use print(1+3) instead of just 1+3 it would print it on the output shell. IDLE has many limitations. This is one of these. Actually it was calculated but it needs to be printed on the console. However the console automatically prints it if you directly write it on the connsole

pratikthorat
Автор

Hi. thanks for the tutorial. I am new at Python  and at other programming languages. How do we increase decimals? for ex: instead of 5/4=1.25 >>> 5/4=1.250. Thank you

muratsert
Автор

I like your videos, I keep getting hung up on the basics becuase my college doesn't go over them well enough. I'm overwhelmed with a luhn algorithm problem and I'm trying to refresh al the basics to figure out were im going wrong.

corycrook
Автор

You can use the '%' operator to find the reminder
eg:-
4%2 will give you 0
5%2 will give you 1

manen
Автор

your videos are always good :) they explain what to do perfectly

dragonight
Автор

Please note that in Python 3 there's a shorthand for integer division:8 // 3

TechLord
Автор

thanks for the video: did you ever figure out how to get it to print in the first workspace?? I can't seem to get it to call on the math myself. I"m using sublime and I don't want to use print(), thanks for your time.

davidleitman
Автор

i tried normal way of computing a number raised to some power. eg: 4^4 = 0, its showing. i thought gives the subtracted value... then i tried many value, but not able to figure out its exact math. can you please help

sanjeevanikumbhar
Автор

Why did you do all the math functions in the shell?

suvendrajenamani
Автор

256/4 and 256//4 gives 64.0 and 64 as a result respectively, can you explain it please.

shadmantanjim
Автор

i hv a question: how do i roundoff a floating value like that resulted by 5/34 (in video) to two decimal values (example : result of 5/34 is 0.1470588 and i want it to be 0.14 only) ...and helpful video's, nice :)

unboxwithaakash
Автор

the >>> is basically a print statement in the shell

jakeambrose
Автор

PLEASE ANSWER 4+=1 didn't work!!!???

bibhushreebrahma
Автор

you're awesome and handsome, but I am still a bit confused. starting off with codecademy and im on the math section attempting to calculate how much a meal costs including tax and tip. each time i write out the equation and press enter i get no result and just drop down to another empty line. any advice?

jer