Half Term 1 Flashcards
What is string manipulation?
The act of manipulating, extracting or changing the characters in a string variable
What are string functions?
String functions are built in functions to manipulate strings
How to use .length?
stringname.length
What does .length do?
.length returns the number of characters in a string including spaces
How to use .substring?
string.substring(startingPosition, numberOfChars)
What does .substring do?
.substring returns the characters within a string based on the specified starting point and number of characters (0 indexed)
What do case conversion functions do?
.upper returns string in upper case, .lower returns string in lower case, isupper returns True if string is uppercase, .islower returns True for lowercase
How to use ASCII conversions?
ASC(character) returns ASCII number, CHR(number) returns character
What is a procedure?
Procedure