Karteikarten
Programming Basics (Part 2)
Karten in diesem Stapel (9)
- 1VariableAn item of data whose value could change while the program is being run.
- 2DeclarationThe process of defining variables and constants in terms of their name and data type.
- 3AssignmentThe process of giving a value to a variable or constant.
- 4ConstantThe value of a constant is fixed for the duration of a program and cannot be changed.
- 5len(string)Returns the length of a string.
- 6String.substring(index1, index2)Returns a portion of a string inclusive of the characters at each index position.
- 7string.find(str)Determines if str occurs in a string. Returns index if found and -1 otherwise.
- 8ord(“a”)Returns the integer value of a character.
- 9chr(97)Returns the character represented by an integer.
Informationen
- Beschreibung
- Become familiar with basic string handling operations. Distinguish between variables and constants.
- Erstellt von
- Daniel Smillie
- Aufrufe
- 6
- Tags
- Bewertung