Lecture 3 — Python Strings
Reading
This material is drawn from Chapter 4 of Practical Programming, 2nd edition.
More Than Just Numbers
-
Much of what we do today with computers revolves around text:
-
Web pages
-
Facebook
-
Text messages
-
These require working with strings.
-
Strings are our third type, after integers and floats.
-
We’ve already seen the use of strings in output,
print("Hello world")
x = 8
y = 10
print("Value of x is", x, "value of y is", y)