Skip to content

danmyatt1987bet/PythonExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Learning to code in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages