Skip to content

Strings

“Bob”   “Passsword@123”

Strings are used to store a mixture of alphanumerical characters, or other characters, such as . , @:()  etc.

Data that might be stored as a string include:

  • Names
  • Passwords
  • Telephone numbers (because they don’t just contain numbers…)
  • Sentences / paragraphs

Most input functions store inputs as text  by default, so if they need to stored in an alternative data type they need to be cast or reassigned.