Nov-12-2022, 11:52 PM
It doesn't run because you have a
There are a few issues with your code for starters:
The second while loop is not required.
A file is opened and never closed
try
without a matching except
There are a few issues with your code for starters:
again
is assigned as 'y' and never re-assigned so the first while loop will always be True.The second while loop is not required.
key
is repeatedly assigned on every while loop iteration and is never used.A file is opened and never closed
ans
is not defined