Sample Python programs to be used for instruction of the BSA Programming Merit Badge.
This project is organized by "labs"; each in its own folder.
Dice rolling script. Rolls two six-sided dice and outputs the value of each. Prompts the user to play again or quit. Teaches basic concepts of:
- variable assignment
- input prompt
- while loops
- conditionals
- random number generator (RNG)
Temperature conversion scripts. Prompts for user input and converts Celsius to Fahrenheit or Fahrenheit to Celsius. Teaches basic concepts of:
- variable assignment
- input prompt
- if statements
- conditionals
Let's play a game of hangman. Script chooses a random word and prompts the user to guess.
Teaches basic concepts of:
- variable assignment
- input prompt
- if/else statements
- arrays and lists
- random number generator (RNG)
- conditionals
- string manipulation/formatting
programming-mb-python is an open source project and your contribution is very much appreciated.
- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
- Fork the repository on Github and make your changes on the
main
branch (or branch off of it). - Add new examples/labs to a new subfolder/directory.
- Add overview of new examples/labs to this README.md (if applicable).
- Send a pull request (with the
main
branch as the target).
A big thank you goes out to everyone who helped with the project, the contributors and everyone who took the time to report issues and give feedback.
programming-mb-python is available under the MIT license. See the LICENSE file for more info.