fruits = ['apple', 'banana', 'orange']
# Get the elements of fruits using a for loop, and print 'I like ___s'
for fruit in fruits:
print ('I like '+ fruit+'s')
Charles Severance's Python for Informatics
IN and NOT IN
if "H" in "Hello":
"Z" not in "HEllo"
Identify the working directory
Change the working directory (On my computer, I need double \ ).
Read a file and print a line that includes a search word (p. 129 of Python for Informatics)
for line in hand: