/file_I-O_snippets

Simple file I-O code examples

Primary LanguagePython

file_I-O_snippets

high_scores.py

Input

  • scores.txt
  • .txt row format
    • name,score

Output

  • Total number of entries
  • The winner and their score

word_list_file_writer.py

Input

  1. The amount of words the user wants to input
  2. loops user input for the words

Output

  • word_list.txt
    • each word separated with a '\n'

word_list_file_reader.py

Input

  • The file made by word_list_file_writer.py

Output

  • Prints in terminal
    • total amount of words read
    • the longest word
    • The average length of all words on file