Chapter 5 Sequences, Strings, Lists, and Files Flashcards
1
Q
True or False
In Python “4” + “5” is “45”
A
False
2
Q
True or False
Both Python lists and strings are mutable.
A
False
3
Q
What function gives the Unicode value of a character?
A
ord
4
Q
The term for a program that does its I/O with files is
A
batch
5
Q
How can you slice a string
A
“string”[#:#]
ex- “hello”[-2:]
-“lo”
ex- “hello”[0:2]
-“he”