This is the code and notes from my live Twitch programming and drawing classes.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
try:
|
|
count = int("hello")
|
|
except ValueError:
|
|
print("Bad number given.")
|
|
|
|
try:
|
|
assert 1 == 2, "One does not equal 2"
|
|
except Exception as what:
|
|
print("assert throws", type(what))
|
|
|