28
edits
Bernhardcl (talk | contribs) |
|||
Line 241: | Line 241: | ||
# replace 'define' for functions with 'def' and for assignments with an '=' | # replace 'define' for functions with 'def' and for assignments with an '=' | ||
# Make sure to use indentation for the function content [Python is indentation sensitive] and a ':' after the function definition. | # Make sure to use indentation for the function content [Python is indentation sensitive] and a ':' after the function definition. | ||
Some additional/advanced(?) rules: | |||
# #f -> False | |||
# #t -> True | |||
# (set! variable value) -> variable=value | |||
====A simple example==== | ====A simple example==== |
edits