Python-Examples
Here you will find various projects that are created for the purposes of practicing Python and documenting my progress with it.
This battleship game expands upon the "Lists and Functions" section of the Battleship 2 & 3python course on Codeacademy. Specifically following the extra credit as outlined in lesson: 19/19
- 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
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. Folder file Count Tracker
- 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
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. Find and Copy Files