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

Mind map

Paper 2 revision #3

Harriet Leplar English

Map content

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.

Information

Description
Mind Map on Paper 2 revision #3, created by Harriet Leplar on 20/05/2019.
Created by
Harriet Leplar
Views
2
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?