Take a look at the following code snippet:
things = ['couch', 'apple', 'phone', 'brain']
for thing in things:
if thing == 'apple':
print(thing)
Identify an exception that it will throw.
Take a look at the following code snippet:
things = ['couch', 'apple', 'phone', 'brain']
for thing in things:
if thing == 'apple':
print(thing)
Identify an exception that it will throw.
Create a free account to access the full topic