CSCA08H3 Chapter Notes - Chapter 3: Empty String, Newline, Backslash
Document Summary
This chapter introduces a non-numeric data type that represents text, such as the words in this sentence or a strand of dna. A piece of text is represented as string (str). Another data type called unicode can store strings containing any characters at all. We indicate that a value is a string by putting either single or doubles quotes around it . When + has two strings operands, it is referred to as the concatenation opertor. We call this an overloaded operator when it can do both. Can only add an empty or zero string. It can take a string and multiply it ex ( at * 5 , atatatatat) If the integer is <= zero than it gives an empty string. Figure it out with all the single or double quotes. If you create a string using single or double quotes, the whole string must fit onto a.