feat: created files for problems 03-10 and added comments describing the problem to be solved.
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
"""
|
||||
Problem 2: Write a Python program that prompts the user to input an integer and raises a ValueError exception if the
|
||||
input is not a valid integer.
|
||||
"""
|
||||
# Problem 2: Write a Python program that prompts the user to input an integer and raises a ValueError exception if the
|
||||
# input is not a valid integer.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# Write a Python program that opens a file and handles a FileNotFoundError exception if the file does not exist.
|
||||
@@ -0,0 +1,2 @@
|
||||
# Write a Python program that prompts the user to input two numbers and raises a TypeError exception if the inputs are
|
||||
# not numerical.
|
||||
@@ -0,0 +1 @@
|
||||
# Write a Python program that opens a file and handles a PermissionError exception if there is a permission issue.
|
||||
@@ -0,0 +1,2 @@
|
||||
# Write a Python program that executes an operation on a list and handles an IndexError exception if the index is out
|
||||
# of range.
|
||||
@@ -0,0 +1,2 @@
|
||||
# Write a Python program that prompts the user to input a number and handles a KeyboardInterrupt exception if the user
|
||||
# cancels the input.
|
||||
@@ -0,0 +1 @@
|
||||
# Write a Python program that executes division and handles an ArithmeticError exception if there is an arithmetic error
|
||||
@@ -0,0 +1 @@
|
||||
# Write a Python program that opens a file and handles a UnicodeDecodeError exception if there is an encoding issue.
|
||||
@@ -0,0 +1,2 @@
|
||||
# Write a Python program that executes a list operation and handles an AttributeError exception if the attribute does
|
||||
# not exist.
|
||||
Reference in New Issue
Block a user