diff options
Diffstat (limited to 'tutorials/module_1/basics_of_python.md')
| -rw-r--r-- | tutorials/module_1/basics_of_python.md | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tutorials/module_1/basics_of_python.md b/tutorials/module_1/basics_of_python.md index 48952c6..7654e92 100644 --- a/tutorials/module_1/basics_of_python.md +++ b/tutorials/module_1/basics_of_python.md @@ -2,13 +2,6 @@ This page contains important fundamental concepts used in Python such as syntax, operators, order or precedence and more. -[Syntax](1_05_basics_of_python#Syntax) -[Operators](1_05_basics_of_python#Operators) -[Order of operation](1_05_basics_of_python#Order%20of%20Operation) -[Data types](1_05_basics_of_python#data%20types) -[Variables](1_05_basics_of_python#Variables) - ---- ## Syntax ### Indentations and blocks In python *indentations* or the space at the start of each line, signifies a block of code. This becomes important when we start working with function and loops. We will talk more about this in the controls structures tutorial. @@ -16,7 +9,6 @@ In python *indentations* or the space at the start of each line, signifies a blo Comments can be added to your code using the hash operator (#). Any text behind the comment operator till the end of the line will be rendered as a comment. If you have an entire block of text or code that needs to be commented out, the triple quotation marks (""") can be used. Once used all the code after it will be considered a comment until the comment is ended with the triple quotation marks.f ---- ## Operators In python, operators are special symbols or keywords that perform operations on values or variables. This section covers some of the most common operator that you will see in this course. ### Arithmetic operators @@ -30,7 +22,6 @@ In python, operators are special symbols or keywords that perform operations on | ** | Exponentiation | | // | Floor division | - ### Comparison operators Used in conditional statements such as `if` statements or `while` loops. Note that in the computer world a double equal sign (`==`) means *is equal to*, where as the single equal sign assigns the variable or defines the variable to be something. @@ -56,7 +47,6 @@ Used in conditional statements such as `if` statements or `while` loops. Note th | is | Returns True if both variables are the same object | | is not | Returns True if both variables are not the same object | ---- ## Order of Operation Similarly to the order or precedence in mathematics, different computer languages have their own set of rules. Here is a comprehensive table of the order of operation that python follows. @@ -76,7 +66,6 @@ Similarly to the order or precedence in mathematics, different computer language | `and` | AND | | `or` | OR | ---- ## Data types Data types are different ways a computer stores data. Other data types use fewer bits than others allowing you to better utilize your computer memory. This is important for engineers because The most common data types that an engineer encounters in python are numeric types. @@ -96,7 +85,6 @@ The comprehensive table below show all built-in data types available in python. | Binary | bytes, bytearray, memoryview | | None | NoneType | ---- ## Variables A **variable** in Python is a name that stores a value, allowing you to use and manipulate data efficiently. |
