Fichas
Computer Science Programming
Fichas del conjunto (18)
- 1.upper()Turns a string uppercase
- 2.lower()Turns a string lowercase
- 3x = len(y)Finds out how many characters are in y
- 4str()To return a string from a number (e.g if you want to output an int or float variable with a string, you would need to convert the number to a string first)
- 5[:?]To return characters to the left of a string
- 6[-?:]To return characters to the right of a string
- 7[?:?]To extract characters from the middle of a string
- 8.find() ( e.g x = y.find(z) )To find the position of substring z in y
- 9+, -, *, /(In Order) Addition, Subtraction, Multiplication, Division
- 10**To the power of
- 11ifif the user enters a certain thing, it will output a specific answer
- 12elifUsed as an alternative to multiple if statements
- 13elseanything else other than what the coder has intended can be written using this
- 14!=Does not equal
- 15<, >, <=, >=(In order) Less than, Greater than, Less than or equal to, Greater than or equal to
- 16andBoth conditions must be true
- 17orOne condition must be true
- 18notCondition is not true
Información
- Descripción
- GCSE Computer Science Fichas sobre Computer Science Programming, creado por Edward Tremayne-Smith el 17/01/2022.
- Creado por
- Edward Tremayne-Smith
- Visitas
- 0
- Valoración