This page is an journal archive of where I showed off my growth of Python understanding while I took an online learning course from udemy.com. After the completion of the course I had felt more comfortable using python and no longer saw programming as a huge hurdle to my capabilities. I had taken and passed my PCEP-30-02 exam from the Python Institute a little after my final milestone project. Overall, it was a very fun learning experience!
I had taken a Python course in college of 2016, but a lot of that information got buried deep in my mind. Taking this course had refreshed my skills and made me excited about programming again. My hope with someone reading this is to inspire and to show that you can learn a lot with just the basics. The course that I had taken costed me a grand total of $15, and I used resources such as Google and Stack Overflow.
This game was difficult to create without the knowledge of functions. The thing that sparked the puzzle solving side of me was learning how to implement logic into my code to get to my end result. For this program, the goal seemed simple, but how you would transform that into a way for the computer to understand is not so straight forward.
This program was fun for me to write because I can finally make use of functions. If I knew what I know now after completing this, I would have made it so most of my functions return, as opposed to printing and doing text formatting. Formatting starts to get confusing if your functions and main function all contribute at the same time. On top of that, I would have also only used dictionaries for storing player data as apposed to using lists and dictionaries. This was still very fun for me to create and I definitely went a little overkill with the amount of features that I threw into it.
After learning how to construct classes, I completed this program to practice having at least two in a script. The concept of a class really ties a lot together. If I were to rewrite this program, I would change one thing about it. I would have created what is known as a "base class" and had "Cylinder" be an inherited class. Making a inherited class from a base class makes it easier to reuse code and to add additional classes in the future.
This is my first project that requires no user input (aside from the main menu) and serves only as a simulation. The point of this script was to grow an understanding of how multiple classes can work with each other to make something like a card game possible. This script puts two 'CPUs' against each other to fight in a card game of War. The matches can take a while, which is why by default the simulation is run through as fast as possible with no pauses. This can be adjusted in the main menu by changing the global value of the sleep() function. The only issue with this script is that it can run into an infinite loop every now and then, so make sure to have Control + C or Command + C ready and at your disposal.
The previous program crawled so this program could run. This project is an important milestone because of the amount of concepts needed to be able to tie everything together. This program is the accumulation of learning the basics of functions, classes, and object orientated programming. Everything created from this point on will have the same basic ideology put into it.
A recreation of the iconic snake game, but in higher resolution! This project was made possible with the built-in python module Turtle. This project is my first successful attempt at making a functional game/app, where the sole interaction is through a GUI. I made use of multiple classes inheriting each other, and separating each part of the on-screen elements as their own objects.