Skip to content

Commit 661d58c

Browse files
committed
Add pin.txt
Edit item3.py
1 parent 064a96f commit 661d58c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,5 @@ TaskSheet.pdf
370370
results1.txt
371371
DIGITECH.pyproj
372372
DIGITECH.pyproj.user
373-
DIGITECH.sln
373+
DIGITECH.sln
374+
pin.txt

item3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@
3737
# Check if the current guess matches the generated PIN
3838
if guess == f"{pin:0{num_digits}d}":
3939
print(f"PIN found: {pin}")
40+
f = open("pin.txt", "w")
41+
print(pin, file=f)
4042
break # Exit the loop if the correct PIN is found

0 commit comments

Comments
 (0)