Live data from Hacker News

Quick way to get started with python? (for php developers)

news.ycombinator.com

11–14 of 14 posts

Re: Quick way to get started with python? (for php developers)

#11
For someone already familiar with any programming, Zed Shaw's 'Learn Python the Hard Way' is an excellent resource. If you have the discipline to hammer through it, I believe it is the fastest way to come up to speed with Python.

http://learnpythonthehardway.org/

As someone with a music background, I found this book interesting, as it follows a similar structure to the way you learn an instrument. When learning an instrument, you don't spend days reviewing music theory, you learn the basic notes, then some scales. Then you do that over and over and over until you're proficient. Then you start playing music. LPtHW reminds me of that approach, and it worked really well for me.

Re: Quick way to get started with python? (for php developers)

#13
post #8

Python's a ridiculously easy language to learn. Here are a few examples of bits of syntax. # comments start with a "#" symbol [1,2,3,4] # that's a list {"x":1, "y":2, "z":3} # that's a dictionary blah = 6 # you can assign things to variables asdf = [3,6,1,2] # including lists, dictionaries, etc. def foo(x,y,z): if x > y: print "X is greater than Y" else: print "X That's a function called foo taking parameters x,y,z.…

that, that looks manageable

Re: Quick way to get started with python? (for php developers)

#14

For someone already familiar with any programming, Zed Shaw's 'Learn Python the Hard Way' is an excellent resource. If you have the discipline to hammer through it, I believe it is the fastest way to come up to speed with Python. http://learnpythonthehardway.org/ As someone with a music background, I found this book interesting, as it follows a similar structure to the way you learn an instrument. When learning an in…

i'm going to run through this, hopefully a weekend is enough to run through most it.
Post reply on HN