gutmach / Python-Examples

Practicing coding with Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python-Examples

Here you will find various projects that are created for the purposes of practicing Python and documenting my progress with it.

  • Battleship 2 & 3

    This battleship game expands upon the "Lists and Functions" section of the python course on Codeacademy. Specifically following the extra credit as outlined in lesson: 19/19
  • Features added:
    • Multiplayer
    • Basic Statistics (current game wins/loses, rematches, best out of 3)
    • Multiple battleship boards
    • Battleship boards of different sizes
    • ("Battleship3" version folder) Added class structure for cleaner code and to allow for unlimited players / boards
  • Folder file Count Tracker

    This simple script counts the number of files within all the directories that are located within a given path. Then it sorts the number of files / folder by file count in descending order and calculates the age of each folder.
  • Features:
    • Calculates how old the folder is from when it was created to the current local time
    • finds and lists all directories within a given path if the number of files within them are above 0
    • a storage file tracks how many files were counted within each folder since the previous count
  • Find and Copy Files

    This simple script is a great example on why Python is such an elegant language. In just roughly 4 lines of code, A drive or path will be searched and whenever it finds a file containing the specified file extension (in this case .doc) it will copy it to the relative folder.

About

Practicing coding with Python

License:GNU General Public License v2.0


Languages

Language:Python 100.0%