You are reading a single comment by @ObiWomKenobi and its replies.
Click here to read the full conversation.
-
Thanks, but I get errors in both :(
Please enter the callsign: A30
Traceback (most recent call last):
File "stations.py", line 10, infor row in stations:
ValueError: I/O operation on closed file.
Please enter the callsign: A30
Traceback (most recent call last):
File "stations.py", line 5, infor row in stations:
ValueError: I/O operation on closed file.
Bit of reading:
with statement
format string
tuple unpacking
you could also use a "for-else" loop, but I don't know many people who use them so they just end up looking weeeeeeeird