intro to Python (programming) free course, anyone else down?

General discussion at the Wang Bar.

Moderator: Ghost Hip

User avatar
htsamurai
IAMILFFAMOUS
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

Post by htsamurai »

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...?
bnet: htsamurai#1534
instagram: lastoneawake
stanimal wrote:Ummm yeah, didn't realize we loved HT that much
User avatar
mr.e
committed
committed
Posts: 100
Joined: Fri Sep 18, 2009 11:43 am

Re: intro to Python (programming) free course, anyone else d

Post by mr.e »

-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.
User avatar
htsamurai
IAMILFFAMOUS
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

Post by htsamurai »

oh snap son, negatives, duh haha
thanks big homie :D
bnet: htsamurai#1534
instagram: lastoneawake
stanimal wrote:Ummm yeah, didn't realize we loved HT that much
User avatar
htsamurai
IAMILFFAMOUS
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

Post by htsamurai »

oldangelmidnight wrote:I didn't see Programming for Musicians and Digital Signal Processing. Sounds cool.
just saw this, here ya go bruhbruh

https://www.coursera.org/course/chuck101
https://www.coursera.org/course/dsp
bnet: htsamurai#1534
instagram: lastoneawake
stanimal wrote:Ummm yeah, didn't realize we loved HT that much
odontophobia
Supporter
Supporter
Posts: 5556
Joined: Tue Jan 15, 2013 3:09 pm
Location: grand rapids

Re: intro to Python (programming) free course, anyone else d

Post by odontophobia »

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.
for some reason I got this right instantly but I didn't even process it.

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.
User avatar
oldangelmidnight
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 3754
Joined: Sat Aug 08, 2009 12:17 pm
Location: Northampton, MA

Re: intro to Python (programming) free course, anyone else d

Post by oldangelmidnight »

htsamurai wrote:
oldangelmidnight wrote:I didn't see Programming for Musicians and Digital Signal Processing. Sounds cool.
just saw this, here ya go bruhbruh

https://www.coursera.org/course/chuck101
https://www.coursera.org/course/dsp
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...
User avatar
zRobertez
FAMOUS
FAMOUS
Posts: 1686
Joined: Sun Apr 08, 2012 11:56 pm
Location: Missouri

Re: intro to Python (programming) free course, anyone else d

Post by zRobertez »

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.
http://www.facebook.com/pages/Housewife/331848200230566
http://housewifeofficial.bandcamp.com/
Tom Dalton wrote:Like a phoenix's butt, it will rise from the asses.
KLON KLON KLON KLON
Post Reply