Mindmap
Python
Inhalt der Mindmap
Python
conditions
- ==, !=, >=, <=, <, > are normal mathematical conditions used in python
- if statements use these conditions
- if statements consist of an "if" keyword followed by a conditional and code to be executed if the conditional evaluates to true
- nested if statements consist of if statements inside other if statements
- elif statements come after if statements and are like if statements except they only run if the other evaluates to false
- else statements run if all other statements evaluate to false
- if statements consist of an "if" keyword followed by a conditional and code to be executed if the conditional evaluates to true
- if statements use these conditions
- "and" and "or" are logical operators that work the same way they do in math
- ==, !=, >=, <=, <, > are normal mathematical conditions used in python
functions
- the "def" keyword is used to define a function
- a function contains a block of code and only runs when called.
- functions are called by writing their name and parentheses
- argument can be passed through functionss
String concatenation
- strings are a datatype consisting of characters
- they can be combined using the "+" operator
- strings are a datatype consisting of characters
numbers
- int
- short for integer
- float
- numbers with decimals
- complex
- complex numbers with "j" to represent the square root of negative one
- thon has built in functions to convert between these types of numbers
- int
Informationen
- Beschreibung
- Mindmap am Python, erstellt von Grace Bourie am 14/01/2021.
- Erstellt von
- Grace Bourie
- Aufrufe
- 1
- Bewertung