so in one of the vids this question comes up
In Python 2 (the version of Python that we are learning), what is the value of -9 / 4?
and the answer given is 3.
because:
"Remember that in Python 2, the result of dividing two integers is another integer. (The exact answer rounded down to the nearest integer.)"
wouldn't that make the right answer 2, though? being that the exact answer would be 2.25, if we're rounding down to the nearest integer and all...?
intro to Python (programming) free course, anyone else down?
Moderator: Ghost Hip
- htsamurai
- IAMILFFAMOUS

- Posts: 4182
- Joined: Sun Jan 13, 2008 1:42 am
- Location: Fresno, CA well now its Orlando, FL
Re: intro to Python (programming) free course, anyone else d
bnet: htsamurai#1534
instagram: lastoneawake
instagram: lastoneawake
stanimal wrote:Ummm yeah, didn't realize we loved HT that much
- mr.e
- committed

- Posts: 100
- Joined: Fri Sep 18, 2009 11:43 am
Re: intro to Python (programming) free course, anyone else d
-9/4 = -2.25
The answer is -3 because you're rounding DOWN to the nearest NEGATIVE integer. Dig?
That question tripped me up too, took me a minute to get.
The answer is -3 because you're rounding DOWN to the nearest NEGATIVE integer. Dig?
That question tripped me up too, took me a minute to get.
---------------
http://psychicfits.bandcamp.com
http://psychicfits.bandcamp.com
- htsamurai
- IAMILFFAMOUS

- Posts: 4182
- Joined: Sun Jan 13, 2008 1:42 am
- Location: Fresno, CA well now its Orlando, FL
Re: intro to Python (programming) free course, anyone else d
oh snap son, negatives, duh haha
thanks big homie
thanks big homie
bnet: htsamurai#1534
instagram: lastoneawake
instagram: lastoneawake
stanimal wrote:Ummm yeah, didn't realize we loved HT that much
- htsamurai
- IAMILFFAMOUS

- Posts: 4182
- Joined: Sun Jan 13, 2008 1:42 am
- Location: Fresno, CA well now its Orlando, FL
Re: intro to Python (programming) free course, anyone else d
just saw this, here ya go bruhbruholdangelmidnight wrote:I didn't see Programming for Musicians and Digital Signal Processing. Sounds cool.
https://www.coursera.org/course/chuck101
https://www.coursera.org/course/dsp
bnet: htsamurai#1534
instagram: lastoneawake
instagram: lastoneawake
stanimal wrote:Ummm yeah, didn't realize we loved HT that much
-
odontophobia
- Supporter

- Posts: 5556
- Joined: Tue Jan 15, 2013 3:09 pm
- Location: grand rapids
Re: intro to Python (programming) free course, anyone else d
for some reason I got this right instantly but I didn't even process it.mr.e wrote:-9/4 = -2.25
The answer is -3 because you're rounding DOWN to the nearest NEGATIVE integer. Dig?
That question tripped me up too, took me a minute to get.
I'm through all but the "project" video for this week. I'll be doing that tonight after work or tomorrow with my day off.
It's pretty exciting. I'm pretty stoked for this.
- oldangelmidnight
- IAMILFFAMOUS

- Posts: 3754
- Joined: Sat Aug 08, 2009 12:17 pm
- Location: Northampton, MA
Re: intro to Python (programming) free course, anyone else d
Thanks. ChucK seems like a strange choice for a class. I guess I was under the impression that C++ would be the language to use...htsamurai wrote:just saw this, here ya go bruhbruholdangelmidnight wrote:I didn't see Programming for Musicians and Digital Signal Processing. Sounds cool.
https://www.coursera.org/course/chuck101
https://www.coursera.org/course/dsp
- zRobertez
- FAMOUS

- Posts: 1686
- Joined: Sun Apr 08, 2012 11:56 pm
- Location: Missouri
Re: intro to Python (programming) free course, anyone else d
I learned to program on javascript. blech. Python looks a lot nicer lol.
You can get a free trial at lynda.com. There are some handy videos there. Intro to object oriented programming and some other vids like that were helpful for me. He uses java but it is more about picking up the basics and the terminology.
You can get a free trial at lynda.com. There are some handy videos there. Intro to object oriented programming and some other vids like that were helpful for me. He uses java but it is more about picking up the basics and the terminology.
http://www.facebook.com/pages/Housewife/331848200230566
http://housewifeofficial.bandcamp.com/
http://housewifeofficial.bandcamp.com/
KLON KLON KLON KLONTom Dalton wrote:Like a phoenix's butt, it will rise from the asses.