> l.extend(12) ...For a list "l": that is wrong, "extend" expects an iterable, not an int.
90% of Python in 90 Minutes (2013)
31–40 of 61 posts
Re: 90% of Python in 90 Minutes (2013)
#32Earlier quoted context omitted.
Yes, in fact that's the point I'm trying to focus on but never made explicit. Thanks.
Integer division rounding toward negative infinity makes it so that for integers a, b, with b > 0, then if a%b is defined as a - b * (a/b), you will always have 0 Integer division rounding toward zero makes that not so. a%b for negative a, positive b, will be On the other hand, rounding toward negative infinity means that (-a)/b != -(a/b), when b does not divide a. Rounding toward zero makes (-a)/b = -(a/b). I think…
[1] https://blogs.msdn.microsoft.com/ericlippert/2011/12/05/what...
Re: 90% of Python in 90 Minutes (2013)
#33Dropping phrases like "REPL" and "PEP" and only defining what they stand for doesn't really explain what they are. And the explanation of dunder methods at first seemed to suggest there are only 2.
And calling this 90% of Python is really misleading. It's not even 90% of the syntax, let alone the whole language.
Re: 90% of Python in 90 Minutes (2013)
#34I guess if learning 90% of something takes 90 minutes, the remaining 10% will take 10 years.
> I guess if learning 90% of something takes 90 minutes, the remaining 10% will take 10 years. Wow !!! so funny , but TRUE
If you find yourself downvoted and wonder why - please consider two things that don't go down well on Hacker News:
1. Arbitrary capitalization for emphasis and multiple exclamation marks makes you sound a little breathless and over-excited.
2. Your post was pretty much content-free.
Re: 90% of Python in 90 Minutes (2013)
#35Re: 90% of Python in 90 Minutes (2013)
#36You can use triple-quote strings as multi-line comments: https://twitter.com/gvanrossum/status/112670605505077248
Re: 90% of Python in 90 Minutes (2013)
#37Re: 90% of Python in 90 Minutes (2013)
#38Re: 90% of Python in 90 Minutes (2013)
#39This is a nice little presentation! Although I wish there was a "context switching" guide that highlights the main differences between all of the languages. After working in Julia or Python for 8 hours, I switch to JavaScript and suddenly forget how strings work. I wish there was a giant table with all of the main differences between the major languages listed so I can glance at it quickly and be on my way.
Re: 90% of Python in 90 Minutes (2013)
#40That's nowhere near 90% of Python. It's strange because everyone thinks Python is an easy language to learn, but that's not True at all. It's easy to pick up and be productive with it in a very short time, yes, but the interpreter has so much going on you can't learn everything in years. If you happen to learn everything about protocols, the interpreter gotchas, there is the standard library which is also huge, and i…
I don't think the library and packages are part of the language though. Just like there is a 'C' without a standard library there is Python 'the language'.
As for the 90%, 90% of the code you write is boring and simple. The one thing I really missed in the slides was list comprehensions, presumably they are in the '10%', but I use them all the time.