Added sample files for day 2 and 3

This commit is contained in:
cheezedoodle2
2023-03-31 12:03:53 -07:00
parent 8f30f2b39b
commit 81a2c615bc
8 changed files with 123 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
def validate(str):
for char in str:
if REPLACE ME:
raise ValueError("Crime detected!")
try:
validate("abcdefg")
print("✅ test1 pass!")
except:
print("❌ test1 pass!")
try:
validate("abcdefg\rhijklmnop")
print("❌ test2 fail!")
except ValueError as err:
print("✅ test2 pass!")