Holcombe:Programming: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(New page: let's try uploading something Image:methods.doc, Python programming Dr. Python is good because it checks indentation. Instead of using {} to delimit code blocks, it uses indentation l...)
 
No edit summary
Line 1: Line 1:
To understand Dani's programs, there are two steps.  First, you must learn Spanish. Second, you must learn Python.
let's try uploading something
let's try uploading something
[[Image:methods.doc]],
[[Image:methods.doc]],

Revision as of 17:37, 23 April 2008

To understand Dani's programs, there are two steps. First, you must learn Spanish. Second, you must learn Python.

let's try uploading something File:Methods.doc,

Python programming Dr. Python is good because it checks indentation. Instead of using {} to delimit code blocks, it uses indentation like so: if X

 asdf
 asdf

dddd ---Each line needs to be offset by the same number of spaces/tabs. Dr. Python checks to make sure this is true so you're not tripped up by invisible characters like tabs masquerading as spaces

if X

 asdf
 asdf