CSCA08H3 Chapter Notes - Chapter 3: Empty String, Newline, Backslash

40 views2 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents