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
Reader Comments
Subscribe: RSS
View by: Time | Thread
[ link to this | view in chronology ]
Re: significant white space in a language is bad
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.
[ link to this | view in chronology ]
Re: Re: significant white space in a language is bad
[ link to this | view in chronology ]
[ link to this | view in chronology ]
Re:
[ link to this | view in chronology ]
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. :)
[ link to this | view in chronology ]
Re:
[ link to this | view in chronology ]
Re: Re:
Besides, it would not be a big problem to make the other strings to link to some page, thus making them the same style. :-)
[ link to this | view in chronology ]
[ link to this | view in chronology ]
Python 2 Or Python 3?
[ link to this | view in chronology ]
[ link to this | view in chronology ]