The indentation is a non-issue. You indent the same way you would for other imperative languages. Python just ensures that other programmers you're working with don't mis-indent a line by accident. I second the official tutorial. Python's a great language for a lot of tasks (anywhere from simple scripts to larger CLI apps to GUI apps to CGI scripts to web applications to games, etc.), and it has a really compact language definition, making it easy to keep in your head (contrast with C++ and Perl). It also has one of the easiest-to-read syntaxes of any imperative language, and Python code tends to be really concise, saving tons of development time. |
|
Bookmarks