feat: created files for problems 03-10 and added comments describing the problem to be solved.

This commit is contained in:
baphim
2026-09-12 20:36:21 -04:00
parent d5dc7b2b3e
commit 26902a8f38
9 changed files with 14 additions and 4 deletions
+2 -4
View File
@@ -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
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.
input is not a valid integer.
"""
+1
View File
@@ -0,0 +1 @@
# Write a Python program that opens a file and handles a FileNotFoundError exception if the file does not exist.
+2
View File
@@ -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.
+1
View File
@@ -0,0 +1 @@
# Write a Python program that opens a file and handles a PermissionError exception if there is a permission issue.
+2
View File
@@ -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.
+2
View File
@@ -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.
+1
View File
@@ -0,0 +1 @@
# Write a Python program that executes division and handles an ArithmeticError exception if there is an arithmetic error
+1
View File
@@ -0,0 +1 @@
# Write a Python program that opens a file and handles a UnicodeDecodeError exception if there is an encoding issue.
+2
View File
@@ -0,0 +1,2 @@
# Write a Python program that executes a list operation and handles an AttributeError exception if the attribute does
# not exist.