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
  • course_planning/computation/common_mistakes.1443139382.txt.gz
  • Last modified: 2015/09/25 00:03
  • by obsniukm