String methods

<< Previous: Data types Next: File handling >>

String methods

The key string methods you need to know are:


Concatenation

Concatenation is used to join strings using the plus symbol. If you want to concatenate a non-string value, you need to cast it first.



Substrings

There are 3 ways to slice a string into a substring:

Case shift

There are two methods to change the case of a string or character in OCR reference language:

ASCII Conversion

ASCII conversion refers to the 2 commands that convert to and from a letters equivalent denary ASCII value:

Knowledge check


Questions:
Correct:

Question text


<< Previous: Data types Next: File handling >>

© All materials created by and copyright S.Goff