Daily Deal: Pure Python Hacker Bundle
from the good-deals-on-cool-stuff dept
class DailyDeal(object): def __init__(self): self.Deal = "The Pure Python Hacker Bundle" self.Description = "Six courses with over 45 hours of instruction." self.Topics = ["Basics", "Websites & Apps", "Bash Scripting", "More"] self.OrigPrice = 454 self.SalePrice = 49 # That's $49, or 89% off the original price def BuyNow(self): print "Get it today from Techdirt Deals ?" # We earn a portion of all sales from Techdirt Deals. # The products featured do not reflect endorsements by our editorial team.
Filed Under: daily deal, online course, programming, python
Comments on “Daily Deal: Pure Python Hacker Bundle”
Python: over a 1/2 century of experience that significant white space in a language is bad, thrown out the window.
Re: significant white space in a language is bad
I think Python is a neat language, with many nice features that make it fun to use. It is currently my first resort for new programming projects.
And yet, I have to agree that attaching significance to whitespace in the way that it does—and inconsistently, to boot—is one of the few instances of genuine brain-damage in the language.
Re: Re: significant white space in a language is bad
I agree on all counts. Python’s a great language. It’s not my default go-to language, but it’s in my top 5 favorites. However, that whitespace thing is horrible.
You’re missing some semi-colons so it doesn’t compute. Sorry. 🙂
Re: Re:
Python doesn’t need semicolons, unless you are putting multiple statements on one line. Sounds like you need to take the course 😉
They fixed it. 🙂
Semicolons are optional in Python. Either your style is to always use them or never use them, not some mix-and-match. 🙂
The preferred style is to not use them.
Also, you’re not supposed to underline some of the strings. Either use underline for all string constants or no string constants. This doesn’t read properly. 🙂
Re: Re:
The visible linking of a couple strings is a concession to the need for clear links in this post — a post which I think you may be starting to take a little too seriously 🙂
Re: Re: Re:
I’m not taking it seriously. 🙂 But my head gets confused by all the styling issues in the code, so it doesn’t compile in my head.
Besides, it would not be a big problem to make the other strings to link to some page, thus making them the same style. 🙂
They forgot to run it….
Python 2 Or Python 3?
That “(object)” tends to point to Python 2…
Awesome advert. Well done guys.