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

Mindmap

Paper 2 revision #3

Harriet Leplar Englisch

Inhalt der Mindmap

Paper 2 revision #3

  1. Usually refers to if statements.

  2. String manipulation

    • Write a code that takes the first 3 letters of someones first name and the first three letters of their last name.
      • a = input("Enter your first name") b = input("Enter your surname") c = (a[:3]) d = (b[:3]) print(c+d)
  3. Usually used when there are multiple types of answer to a question.

  4. If, elif, else.

  5. Writing/reading to a file.

    • "r" is reading from a file,
    • "w" means writing to a file.
    • "a" means adding to the end of a textfile.
    • open("data.txt" , "w")
      • This means creating a file called data.txt . This allows us to create a file that does not exist.
    • We can also use "x" to create a file. This will also return an error if the file already exists.

Informationen

Beschreibung
Mindmap am Paper 2 revision #3, erstellt von Harriet Leplar am 20/05/2019.
Erstellt von
Harriet Leplar
Aufrufe
2
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck