Python Mastermind Game
This is a code project that combines the basics of python. In the attached photos, I have shown you the code and comments in the code to explain what each part is doing.
Supplies
Python IDLE
Coding
Use the above picture to code your game. Any writing in the green print(" ") statements can be edited to say what you want it to say. The next step explains what each part of code means.
Meaning of the Code
The picture above explains what each section of code does in the red comments. Any writing after a hashtag (#) is skipped and is not part of the code.
If you are struggling, have a look at my basics of python instructable:
Play the Game
Now you can play the game! I have a copy of my code here in case you want to see what the code does first.