Useful Python Tips

python tips
This is a collection of some useful Python tips since I first started learning the language. I found out about them through different projects, online courses, and code challenges. The caveat is that they are a bit all over the place. They range from setting up a virtual environment to more general Python tips. As I learn more about the language, I will update this post.

Before we start, I do want to say ahead of time that I will be using Python 3 and my OS is Ubuntu. When I use the terminal to type in command lines, it will be written for Linux. Click on the category link in the table of content if you want to jump directly to that category.
Read more

Income Calculator Program

income calculator

The first thing I built with Python was an income calculator program. At the time, my job paid me an hourly rate. I had no fixed schedule and had to often come in to cover for my coworkers. My wages vary a lot every other week or so. I used to have to bring up the calculator app every week to crunch out the numbers. I had to remember how many hours I worked on each day of the week, add them all up together and multiply that to my wage. Thinking back on it now, it was really slow and tedious.

Read more

Mini Cactpot Algorithm 1

This is the first part of the mini cactpot algorithm. If you want to take a look at the complete code, click on the link: FF14 Mini Cactpot Calculator. I will be talking about two main classes of the program, Game and Calculate. The class Game deals with displaying the ticket to the user, getting user inputs, and updating the ticket accordingly. The class Calculate does the heavy lifting by calculating all possible combinations of three number lines on the ticket and the payout of each.

Read more

FF14 Mini Cactpot Calculator

ff14 mini cactpot game

Final Fantasy 14 MMO has a minigame called Mini Cactpot. The ticket plays out on a three by three matrix with numbers from one to nine. The interesting thing about the game is that you cannot reveal all the possible numbers on the ticket. You get a number for a new ticket and can scratch off three additional numbers. Therefore the ticket still has five hidden numbers that you have to guess.

Read more