Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python, Operator, Variables, Values and Data Types, List, if ... else,…
Python
Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
-
Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
Python can be treated in a procedural way, an object-oriented way or a functional way.
-
-
-
Operator
-
Identity Operator
is (returns True if both variables are the same object)
is not (returns True if both variables are not the same object)
Comparision Operator
== (equal)
!= (not equal)
> (greater than)
< (less than)
>= (greater than or equal to)
<= (less than or equal to)
Logical Operator
and (returns True if both statements are true)
or (returns True if one of the statements is true)
not (returns False if the result is true)
Variables, Values and Data Types
Variables are containers for storing data values. [x]
Value is information that is assigned to variable. [1]
x = 1
-
-
List
-
- Ordered
- Changeable
- Allow duplicates
- Indexed
-
-
Syntax
-
Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important.
-
-