Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ~~NOTOC~~ ====== Common easily overlooked mistakes ====== ==== Multiplication ==== When multiplying two numbers, <code python> number3 = (number1)(number2) </code> will throw an error. Asterisks must be used: <code python> number3 = number1*number2 </code> ==== Raising number to a power ==== Raising to a power with a caret <code python> numraisedton = num^n </code> will throw an error. You need to use double asterisks: <code python> numraisedton = num**n </code> ==== Indentation issues ==== 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 - **Format > Dedent Region** ( ⌘[ ) - **Format > Indent Region** ( ⌘] ) course_planning/computation/common_mistakes.txt Last modified: 2015/09/25 13:40by obsniukm