Chapitre 9 : Suggested exercises in Python

 Project implementation 

You've come a long way in your learning of coding and Python. Here are a few suggestions for further exercises. Good luck as you continue.


The aim of this chapter is to find the resources on the Internet or in books to solve correctly and completely these suggested exercises. These are listed below.

 Pseudo-code statements 

1: Simulate a horse race. The same horse can't cross the finish line twice.

2: Simulate a horse race for which you have asked the user of your program to place a bet.

3: Simulate the Loto draw. Please note that the same number cannot be drawn twice.

4: Simulate a game of rock, paper, scissors.

5: The program must indicate whether a word entered by the user is a palindrome or not. Ditto for a sentence. A palindrome is a word or phrase that can be read in both directions. kayak, for example.

6: The program transforms a decimal number given by the user into a binary number.

7: The program transforms a binary number given by the user into a decimal number.

8: The program transforms a hexadecimal number given by the user into a decimal number.

9: Find or invent other exercises... Practice as much as you can.

Good work and good luck.