CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
404
Write Then Read BackRead one line from standard input and write it to `greeting.txt` with a newline ...
easy○ Not Started
Files
Solve
405
Count The LinesThe write step stores three fruit names, one per line, in `fruit.txt`. Open the ...
easy○ Not Started
Files
Solve
406
Shout Every LineThe write step puts three lines into `notes.txt`: the line read from input follo...
easy○ Not Started
Files
Solve
407
Append One More TaskTwo tasks are written to `todo.txt` in write mode and a third, read from input, ...
easy○ Not Started
Files
Solve
408
Longest Name On FileThree names read from input are written to `names.txt`, one per line, and the fi...
easy○ Not Started
Files
Solve
409
Sum Of Saved NumbersFour whole numbers from input are written to `numbers.txt`, one per line. Inside...
easy○ Not Started
Files
Solve
410
Word Count From A FileThe sentence read from input is written to `story.txt`. Open the file for readin...
easy○ Not Started
Files
Solve
411
Characters In A FileThe line read from input and a fixed line `end` are written to `size.txt`, each ...
easy○ Not Started
Files
Solve
412
The Last LineThree lines read from input are written to `diary.txt`. Open the file for readin...
easy○ Not Started
Files
Solve
413
Lines And Their LengthsThree lines read from input are written to `lengths.txt` and the file is then re...
easy○ Not Started
Files
Solve
414
Copy Then ShowTwo lines read from input are written to `source.txt`. Open `source.txt` for rea...
easy○ Not Started
Files
Solve
415
Average From A CSVThe write step stores a header line `name,score` and three rows in `scores.csv`,...
easy○ Not Started
FilesCSV
Solve
416
Second Column OnlyThe write step stores three city rows in `cities.csv` with `csv.writer` (the fil...
easy○ Not Started
FilesCSV
Solve
417
Round Trip Through JSONThe write step builds `person` from the two input lines (a name, then an age) an...
easy○ Not Started
FilesJSON
Solve
418
Decode A JSON LineThe JSON object read from input (one line with the keys `title` and `pages`) is ...
easy○ Not Started
FilesJSON
Solve
419
Lines With The WordFour fixed lines are written to `poem.txt` and a search word is read from input....
easy○ Not Started
Files
Solve
420
Count The Long LinesThree lines read from input are written to `mixed.txt` and read back in a loop t...
easy○ Not Started
Files
Solve
421
Append To The LogThe write step creates `log.txt` holding the single line `started`, and an entry...
easy○ Not Started
Files
Solve
422
Scores Saved As JSONThree whole numbers read from input are collected in the list `scores` and saved...
easy○ Not Started
FilesJSON
Solve
423
Rows From A DictWriterThe write step uses `csv.DictWriter` with the field names `name` and `score` to ...
easy○ Not Started
FilesCSV
Solve
424
Last Line FirstThree lines read from input are written to `order.txt` and read back into the li...
easy○ Not Started
FilesSlicing
Solve
425
Growing To-Do FileCreate `todo.txt` in write mode holding `first_task` on its own line, then read ...
medium○ Not Started
Files
Solve
426
One Number Per LineInput: one line of whole numbers separated by spaces, no prompt. Split the line ...
medium○ Not Started
Files
Solve
427
Scores Above The BarWrite `rows` to `grades.csv` with the header line `name,score` first and one row...
medium○ Not Started
FilesCSV
Solve
428
Settings On DiskSave the `settings` dict to `settings.json` with `json.dump` and `indent=2`. The...
medium○ Not Started
FilesJSON
Solve
429
Look Up The QuantityWrite every row of `stock` to `stock.csv` with `csv.writer` and `writerow` (open...
medium○ Not Started
FilesCSV
Solve
430
Evens Into Their Own FileInput: one line of whole numbers separated by spaces, no prompt. Split it with `...
medium○ Not Started
Files
Solve
431
Wordiest LineInput: three lines of text, no prompt. Write them to `lines.txt` one per line, t...
medium○ Not Started
Files
Solve
432
Aligned Grade TableAdd one more entry to `grades` from input (a name on the first line, a whole-num...
medium○ Not Started
Files
Solve
433
Replace Across A FileWrite the three lines in `draft` to `draft.txt`, then read two words from input:...
medium○ Not Started
Files
Solve
434
Find A Student In JSONSave `students` to `students.json` with `json.dump` and `indent=2`, then read a ...
medium○ Not Started
FilesJSON
Solve
435
Reversed CopyInput: three lines, no prompt. Write them to `forward.txt`, read that file into ...
medium○ Not Started
FilesSlicing
Solve
436
Pass Column AddedInput: the first line is a whole number `n`, then `n` lines each holding a name ...
hard○ Not Started
FilesCSV
Solve
437
JSON Contact BookInput: the first line is a whole number `n`, then `n` lines each holding a name ...
hard○ Not Started
FilesJSON
Solve
438
Score StatisticsInput: the first line is a whole number `n`, then `n` lines each holding a name ...
hard○ Not Started
FilesCSV
Solve
439
Errors Pulled From A LogInput: the first line is a whole number `n`, then `n` log lines, each starting w...
hard○ Not Started
Files
Solve