Tag Archives: Python

Discover Python and Patterns (5): Integers

In previous posts, I only used strings and booleans. In this one, I use a new data type called “int” (for integer) that allows the storage and computation of natural numbers (numbers without a decimal part). I use them to … Continue reading

Posted in Tutorial | Tagged | Leave a comment

Discover Python and Patterns (4): Loops

The previous game only allows one try: you have to restart it to propose another word. In this post, I introduce loops, and I use them to repeat the game until the player finds the magic word.

Posted in Tutorial | Tagged | Leave a comment

Discover Python and Patterns (3): Branching

Programs in the previous post always lead to the same result. Here, I show you the basics of branching, or how to change the flow of a program depending on cases.

Posted in Tutorial | Tagged | Leave a comment

Discover Python and Patterns (2): Basic interaction

In the first post, we saw how to install an IDE and how to display a message; it is time to add some interaction with the player.

Posted in Tutorial | Tagged | Leave a comment

Discover Python and Patterns (1): Start

In this series, I propose to discover Python and design patterns. The Python language is today one of the best language to discover programming. At the same time, I will also introduce design patterns, a collection of programming recipes that … Continue reading

Posted in Tutorial | Tagged | Leave a comment