CSE 1010 Lecture Notes - Lecture 2: Substring, String Operations, Concatenation

57 views2 pages
jadetortoise401 and 55 others unlocked
CSE 1010 Full Course Notes
84
CSE 1010 Full Course Notes
Verified Note
84 documents

Document Summary

A sequence of 0 or more characters delimited by single quotes or double quotes. Ex) , , just remember", zxzz1zx , cse1010", 12". Special characters - special character sequences, beginning with the backslash (\) are interpreted in a special way. Inserting a \ in the middle of a string shows that the next character will have a special meaning. The \ says, python please don"t interpret the quote after \ as the end of the string . Inserting \n will end the current line of text and start a new one. Inserting will skip to the next tab stop in the text. Raw strings - when special characters have no special meaning) Insert r or r before the first quote. Concatenation - inserting + will concatenate strings. >>> s + + t note how it doesn"t insert a space. Repetition - inserting a * followed by an integer.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents