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

Fichas

computer science revision

Connor Gill Inglés 22 fichas

computer science revision

Fichas del conjunto (22)

  1. 1PSEUDOCODEPSEUDOCODE
  2. 2SYNTAXSYNTAX
  3. 3PSEUDOCODEPSEUDOCODE
  4. 4SYNTAXSYNTAX
  5. 5VARIABLEVARIABLE
  6. 6Data typeData type
  7. 7BooleanBoolean
  8. 8InputAn input allows a user to add something to the code for example:
    what is your favourite colour?
    They would then answer and then that information will be stored in the code until it is later reset.
  9. 9printPrint allows python to output some text on a screen.
    Print can output the answer to a mathematical equation.
    Print can output the content of a list.
    Print will turn purple if it is done correctly!
  10. 10castingcasting
  11. 11IF – ELIF – ELSEIF – ELIF – ELSE
  12. 12Boolean operationsBoolean operations
  13. 13iterationsIterations are another way of saying loops.
    Iterations allow users to be able to loop a piece of code over and over again without having to write it down.
    these come as FOR and WHILE loops.
  14. 14whileA while loop statement in Python programming language repeatedly executes a target statement as long as a given condition is true.
  15. 15forThe Python for statement iterates over the members of a sequence in order, executing the block each time. Contrast the for statement with the ''while'' loop, used when a condition needs to be checked each iteration, or to repeat a block of code forever.
  16. 16InA list is a data structure in Python that is changeable, ordered sequence of elements. Just as strings are defined as characters between quotes, lists are defined by having values between square brackets [ ]
  17. 17Indexsimple terms, index() method finds the given element in a list and returns its position. However, if the same element is present more than once, index() method returns its smallest/first position.
  18. 18valueThe value of some objects can change. Objects whose value can change are said to be mutable; objects whose value is unchangeable once they are created are called immutable.
  19. 19appendappend() and extend() in Python. Append: Adds its argument as a single element to the end of a list.
  20. 20deleteThe remove() method removes the item which is passed as an argument. If you need to delete elements based on the index (a specific item), you can use the pop() method. Also, you can use del statement to remove items from a list or delete an entire list.
  21. 21Lenlen() function is an inbuilt function in Python programming language that returns the length of the string.
  22. 22insertThe insert() method inserts an element to the list at a given index.

Información

Descripción
explanations and meanings of different software and code
Creado por
Connor Gill
Visitas
6
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?