Python Programming Rolling Random Numbers (Level Advanced) Distance Learning
£12.00This lesson moves students on from the basics of coding and using variables in Python and begins to introduce them to how to generate random numbers by importing in the Random module into Python. In this lesson, students will learn how to generate random integers between 1 - 6 by creating a Dice Game. Students will be expected to firstly create a 1 player game (via provided guidance) and then modify their code so it is suitable for 2 players.
On purchase of this resource, you will be provided with a sharable link to access the files in Google Drive so they can be shared with your students via Google Drive or Google Classroom. A pdf version of the resource will also be supplied.
Students are expected to have some prior knowledge of Python and should be comfortable with the following concepts (as they will be covered in this resource):
• Creating and using variables
• If statements
• Loops
• Print and input functions
• 1D arrays.
• Storing data to files.
• Functions and parameter passing
This is a fun and engaging manner to teach students how to generate random integers in Python in order to create a 1 player and 2 player Dice Game.
This resource comes complete with:
1. Colorful lesson powerpoint which includes explanations and student tasks (editable and PDF format)
2. Detailed lesson directions
3. Student worksheets
4. Answer Key
5. I Can Statements.
6. Python answer files
Depending on the ability level of your students and their pace to pick up new coding concepts, this resource is 1 weeks worth of teaching material (1 hour per day).
This resource consists of 41 pages and includes Python code files.