Today's tutorial is in response to an email from a reader who asked me how to remove items from a Python list. I've decided to write an article listing the different ways to do so. Here we...
Posts by Jamie
Python Programming Challenge 6: How to print the Pascal Triangle
For today's challenge, we need to write a program that prints out the Pascal Triangle. Pascal Triangle is named after Blaise Pascal, a famous French Mathematician and Philosopher. An example is...
Python Programming Challenge 5: How to do Trigonometry in Python
Today's challenge involves doing basic trigonometry in Python. We'll be using Python to calculate the angles of a triangle using the cosine rule. First, what is cosine rule? Suppose you have a...
Python for Data Science: How to Output Basic Summary Statistics using a Single Pandas Function
In the previous blog post, we wrote a program to read from a text file (marks.txt) that consists of integers separated by commas. Based on the contents of the text file, we constructed the frequency...
Today's challenge requires some high school statistics. Specifically, here's what we need to do. First, we need to read from a text file (marks.txt) that consists of integers separated by...
Today's challenge is very straightforward, we need to write a simple Python program to compare two CSV files to determine if there are any differences between them. For each line, if they...