¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Paper 2 revision #3

Harriet Leplar Inglés

Contenido del mapa

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.

Información

Descripción
Mapa Mental sobre Paper 2 revision #3, creado por Harriet Leplar el 20/05/2019.
Creado por
Harriet Leplar
Visitas
2
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?