MD Web Technologies

Category -> Python

Using Python: Counting Prime Numbers

Posted February 19, 2018

Categories: Math Solutions, Python, Software Development

When children first hear of 'prime' numbers in elementary school, they are likely seen as just another abstract concept in mathematics. However, like most of what we learned in elementary school, prime numbers have vast practical use in our world today, including in the world of computer programming and communications. A prime number is a whole number greater than 1 whose only factors are 1 and itself. A factor is a whole n  .... Read More

Using Python: Mortgage Amortization

Posted February 19, 2018

Categories: Financial Calculator, Python, Software, Software Development

Today's post offers another tool for financial calculations using Python. The program offered here takes three items as input; (1) the principal amount of the mortgage, (2) the annual interest rate, and (3) the term of the loan in years. The program outputs the monthly payments, detailing the amount paid for interest and principal each month of the mortgage for the entire term of the loan. At the end of the output, the user is offered totals for interest and principal paid over the term of  .... Read More

Using Python: Finding Divisors

Posted February 9, 2018

Categories: Math Solutions, Python, Software

Today's post is admittedly a more basic variety - using Python to find the divisors of numbers. Python has proven itself very adept in the rapidly growing world of data science. Students are finding their way into introductory Python programming more and more. The following program may help point one of them in the right direction. Of course, it remains for them to use that direction to develop their own original work. Enjoy the program and, of course, feel free to email me at martin@mdbytes.c  .... Read More

Gain on Sale: With Python

Posted December 28, 2017

Categories: Financial Calculator, Open Source, Python, Software

Our first post in our codex library is from my Python collection - one of my first Python efforts. The following Python program calculates the gain or loss on a stock purchase or sale. The program welcomes the user, explains the program, obtains inputs, makes calculations and produces output for the user. # Goal is to determine profit from stock transaction # Welcome user and state purpose print('WELCOME TO OUR STOCK PROFIT CALCULATOR!') print(' ') print('This program save you time and  .... Read More