A Breather
Quiz On canvas. It should take just a few minutes
Reading The file s2.pdf
, which
is on Canvas contains the reading. The relevant material is
in §§6-8. §7; discusses casts. Reading this will help
you to understand sequence types. While you read, open Python. If you
wonder "What happens if I do this?" you shoud "do this," and find
out! You are encourage to spelunk.
Today you have some open lab time. If you haven't finished
print_practice.py
go ahead and do so. There is
an exercise on stings on the specs page
called string_play.py
. There is shell code for you
to download.
Upcoming, there will be a similar exercise on lists and tuples. For your convenience, furnish these useful links.
If you have questions, I will post them and their answers here.
QuestionI keep getting nonsense on a valid program.
Answer Make sure Python is not runnning in the terminal
when you hit the triangle button. This is often the culprit. If it is, you can
exit it by typing quit()
, or by deleting the terminal by hitting
the trash can icon.
Hitting the triagle will give you a fresh new terminal.