Learn Python Programming
askpython.com
askpython.com
def sum(list):
sum = 0
for l in list:
sum = sum + l
return sum
mylist = [1,2,3,4,5]
print(sum(mylist))
Hint: Observe the name of (1) the function, (2) the parameter therein.One could argue that in a source meant to teach Python, it shouldn't use examples that don't follow best practices. I feel that as a resource to, from the page, "learn how to write code, the basics and see examples" that it doesn't really matter too much.
Furthermore, I tried hard to ignore the glaring similarities between this and Zed Shaw's "Learn Python the Hard Way" from the way the course is structured down to some expressions.
This would have been cool if it at least mentioned the course on the right side pane with the other recommendations.
You're probably right that you shouldn't have reimplemented it though - knowing how to use the language and its standard library is a good indicator for real-word experience.
I would omit the remarks at the beginning about 2 vs. 3 compatibility. Not only is it wrong as an absolute, it doesn't add value to the tutorials. The audience this is appropriate for is unlikely to care or even understand. Simply link directly to the Python 3 version to download.
Just received an email the other day about the alpha.
I'm glad they're finally moving on to Python3.
He still doesn't seem to be a fan of Python 3. Not sure if it's a good idea to write a book about a language that you don't like..
> I've been programming for a very long time. So long that it's incredibly boring to me. [...] Programming as a profession is only moderately interesting. It can be a good job, but you could make about the same money and be happier running a fast food joint.
[1] Work through Learn Python The Hard Way (both online and the book) [2] Build an AI Agent to Solve Raven's Progressive Matrices
Focusing on these two things only provides the knowledge and practice necessary to learn and implement I believe. Obviously, I just started so maybe I'll provide an update once I get along further months from now.
https://www.reddit.com/r/Python/comments/40s6dm/meta_can_we_...
Maybe people who already know how to code in other languages but are just trying to Learn Python?
https://developers.google.com/edu/python/
Google Code Jam is very helpful if you like algorithmic programming.
One of the nicest things about python is rich libraries for daily mundane GUI automation: pyautogui, pyhooks, pywinauto, sikuli, etc.
It definitely seems shady to me.
Good luck.
Whois protection makes sense anyway, the amount of spam you get after registering a website is incredible. IMHO it's worth spending $2/yr for that service.