Skip to content

Commit

Permalink
Error Identifying Exercise 1 added
Browse files Browse the repository at this point in the history
  • Loading branch information
MohaKhalili committed Mar 23, 2020
1 parent 4d1ed96 commit 3985831
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Identify the type of Error that occurs when the following code is executed:

my_result = a * 8
# NameError

a = 12
b = 12-24
my_result = a/(a+b)
# ZeroDevisionError

a = 12
b = 13
my_result = (a + b / 2a)
# SyntaxError

a = 30
b = 74353634.89
my_result = a**b
# OverflowError

my_dictionary = {'tom': "Arnold",
'bob': "Henry",
'james':"Sulivan"}
print(my_dictionary["Henry"])
# KeyError

0 comments on commit 3985831

Please sign in to comment.