[Tutor] File I/O Help please!!

Marise Miville marisesea at gmail.com
Sun Dec 12 17:16:18 EST 2021


[image: Tutor help 1.png]

[image: image.png]
I am very new at this and I am trying to write 2 short programs.

*Program 1: Prepare a list of the primes less than 1500. Save them in
binary form to a file named 'SmallPrimes.dat'*

*Program 2: Open the file 'SmallPrimes.dat' and read them into a list.
Print them 5 at a time until the list is exhausted.*

This is how far I could get without success. What am I doing wrong? Can
anyone help me correct my codes?

Thank you everyone!!!

MM


More information about the Tutor mailing list