Mar-26-2019, 06:26 PM
You want to have the file open while you are generating the lines of the multiplication table, and you want to write them to the file (times.write()) instead of printing them.
If you want to append to a file instead of writing over it, you use mode 'a' when you open the file instead of mode 'w'.
If you want to append to a file instead of writing over it, you use mode 'a' when you open the file instead of mode 'w'.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures