GoConqr has a new look! Let us know what you think.

Mind map

Python

Grace Bourie English

Map content

Python

  1. 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
    • "and" and "or" are logical operators that work the same way they do in math
  2. 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
  3. String concatenation

    • strings are a datatype consisting of characters
      • they can be combined using the "+" operator
  4. 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

Information

Description
Mind Map on Python, created by Grace Bourie on 14/01/2021.
Created by
Grace Bourie
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?