course_planning:computation:common_mistakes

This is an old revision of the document!


Common easily overlooked mistakes

When multiplying two numbers,

number3=(number1)(number2)

will throw an error. Asterisks must be used:

number3=number1*number2

Raising to a power with a caret

numraisedton = num^n

will throw an error. You need to use double asterisks:

numraisedton = num**n

If an indentation error is given, select the entire indented region and Format > Dedent Region (⌘[) then re-indent Format > Indent Region (⌘]).

  • course_planning/computation/common_mistakes.1443187993.txt.gz
  • Last modified: 2015/09/25 13:33
  • by obsniukm