GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

PYTHON

Emilia Sparta Englisch

Inhalt der Mindmap

PYTHON

  1. >>>

    • prompt symbol of the Python console
  2. IDLE

    • includes tools for writing and debugging entire programs
  3. /

    • single slash to divide numbers produces a decimal (float)
    • dividing any two integers produces a float.
    • float can be added to an integer, because Python silently converts the integer to a float.
  4. Dividing by zero in Python produces an error, as no answer can be calculated

    • the last line of an error message indicates the error's type
  5. Computers can't store floats perfectly accurately

    • often leads to bugs
  6. You can chain exponentiations together.

    • can rise a number to multiple powers
  7. STRING

    • entering text between two single or double quotation marks
    • docstrings
      • used for block commenting
    • double quotes can't be directly included in a double quote string
      • placing a backslash
    • escape characters
      • Backslashes
        • to escape tabs, arbitrary Unicode characters, and various other things that can't be reliably printed
  8. OUTPUT

    • programs take input and process it to produce output
    • print function to produce output
    • When a string is printed, the quotes around it are not displayed
  9. INPUT

    • input function
      • function prompts the user for input, and returns what they enter as a string
  10. CONCATENATION

    • strings in Python can be added
      • can be done on any two strings.
    • doesn't matter whether they've been created with single or double quotes.
  11. STRING OPERATIONS

    • Strings can also be multiplied by integers
    • Strings can't be multiplied by other strings
    • Strings also can't be multiplied by floats
  12. TYPE CONVERSION

    • can't add two strings containing the numbers 2 and 3 together to produce the integer 5
      • operation will be performed on strings, making the result '23
        • would use the int function
    • turning inputs to floats

Informationen

Beschreibung
Mindmap am PYTHON, erstellt von Emilia Sparta am 30/10/2018.
Erstellt von
Emilia Sparta · Okt 2018
Aktualisiert
30 Okt 2018
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck