Tag: import
Hello World 2, in Python 3
Hello World is the famous minimal introductory program for many programming languages. But as soon as it’s served its purpose, it’s discarded… read more Hello World 2, in Python 3
Number guessing game
The number guessing game incorporates several simple but important elements of elementary programming and is a good candidate for an… read more Number guessing game
Stars and Stripes
A variation on the Stars and Stripes American Flag for Independence Day. It’s an exercise in the use of transparency in… read more Stars and Stripes
Rainbow Flag in Pygame
This little Pygame program paints the Rainbow Flag, as used by the LGBT movement. It illustrates: Importing the Pygame library… read more Rainbow Flag in Pygame
A Fake Circle made of Straight Lines
Inspired by this post on Reddit, I wrote this little script to do the same thing. The circle is an… read more A Fake Circle made of Straight Lines
Easy Graph Plotting with Pyplot
Graphs (also known as charts) are an indispensible visual aid for conveying a lot of data in an easy-to-digest form…. read more Easy Graph Plotting with Pyplot
Square Spiral
This is a very simple introduction to Turtle graphics. The turtle starts in the middle of the window, moves forward… read more Square Spiral



