[Tutor] File I/O Help please!!
David Rock
david at graniteweb.com
Mon Dec 13 09:35:18 EST 2021
* Marise Miville <marisesea at gmail.com> [2021-12-12 14:16]:
>
> 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?
Two problems:
1. This mailing list strips attachments. Please copy/paste your code as text
so we can see it instead of attaching an image.
2. we won't do homework for you. We will give suggestions
about where to look, but that will depend on what the code you've done looks
like.
--
David Rock
david at graniteweb.com
More information about the Tutor
mailing list