teach-ict.com logo

THE education site for computer science and ICT

2. Using strings

You can assign data as a string just like with any other data type. In pseudocode, you do this with the SET...TO keywords. For example:

SET MyLargeString TO "Hello this is a string"

The program will recognise everything between the double speech marks (" ") as a string variable called MyLargeString. You can also use single speech marks (' '), but you have to be consistent. The following, for example, would not work:

SET MySmallString TO "Hello'

 

 

Challenge see if you can find out one extra fact on this topic that we haven't already told you

Click on this link: What is a string variable?