Difference between revisions of "Python"

From RHS Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
/    Division
 
/    Division
 
**  Power
 
**  Power
%    Reminder</nowiki>
+
%    Reminder
 +
=    Asignment</nowiki>

Revision as of 08:18, 5 April 2015

Indentation

Python is an indented language, so the code indentation matters. A good practice is to indent with 4 spaces (if you mix spaces and tabs the code won't work.

Operators

Arithmetic

+    Addition
-    Substraction
*    Multiplication
/    Division
**   Power
%    Reminder
=    Asignment