Cookies help us deliver our services. By using our services, you agree to our use of cookies. More information

Changes

From CCP4 wiki

Coot

3 bytes removed, 20:37, 13 March 2014
m
Simple rules for Scheme to Python translations: changed word order for clarity
Here some simple rules how to translate from Scheme to Python. To translate the other way around, i.e. Python to Scheme, just turn the rules around:
# replace Replace all '-' with '_' (except in equation when you need arithmetic '-' minus signs)# move Move the brackets around the argument(s)# separate Separate multiple arguments by commas rather than spaces# replace Replace 'define' for functions with 'def' for functions and for assignments with an '='for assignments
# Make sure to use indentation for the function content [Python is indentation sensitive] and a ':' after the function definition.

Navigation menu