course_planning:computation:common_mistakes

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 where the indentation error is probably located (check in the region they last made an edit) and

  1. Format > Dedent Region ( ⌘[ )
  2. Format > Indent Region ( ⌘] )
  • course_planning/computation/common_mistakes.txt
  • Last modified: 2015/09/25 13:40
  • by obsniukm