I'm learning python. I've wanted to learn it for a while, but I finally have a purpose, which makes it easier for me. Unless I have a project to work on, I can't really learn anything (as it turns out). So, I've decided to make a python-script for all the statistical calculations required during the course. It will use lists for holding the raw
(
Read more... )
Comments 20
http://projecteuler.net/
Be sure to check out the solutions once you've finished a puzzle, on both sites. The fora are full of interesting ideas and idomatic programming. Python is a really excellent language, but some of the idiom is completely unlike other languages.
https://prof.ti.bfh.ch/hew1/informatik3/prolog/p-99/
This is good too, python chews up a lot of these problems with language features, but it's still tricky by the end.
also for stats you might want to use numpy, which is ridiculously fast and very pythonic.
Reply
Reply
There are post-processors that let you use tradition c-style braces, but it's hackish and pointless.
Also it's not actually "3 vs 4 spaces", it's "is this line indented more or less than the previous line?". You don't have to be consistent.
Reply
Reply
Reply
Reply
Reply
Leave a comment