Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
course_planning:computation:common_mistakes [2015/09/25 13:34] – [Indentation issues] obsniukm | course_planning:computation:common_mistakes [2015/09/25 13:40] – [Indentation issues] obsniukm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
+ | |||
====== Common easily overlooked mistakes ====== | ====== Common easily overlooked mistakes ====== | ||
Line 5: | Line 7: | ||
When multiplying two numbers, | When multiplying two numbers, | ||
<code python> | <code python> | ||
- | number3=(number1)(number2) | + | number3 = (number1)(number2) |
</ | </ | ||
will throw an error. | will throw an error. | ||
<code python> | <code python> | ||
- | number3=number1*number2 | + | number3 = number1*number2 |
</ | </ | ||
Line 25: | Line 27: | ||
==== Indentation issues ==== | ==== Indentation issues ==== | ||
- | If an indentation error is given, select the entire indented region where the indentation error is probably located and | + | If an indentation error is given, select the entire indented region where the indentation error is probably located |
- **Format > Dedent Region** ( ⌘[ ) | - **Format > Dedent Region** ( ⌘[ ) | ||
- **Format > Indent Region** ( ⌘] ) | - **Format > Indent Region** ( ⌘] ) |