filmov
tv
Python Dice Rolling and Dice Games - Beginner Python Lesson Learn Python Fast by doing a Dice Roller

Показать описание
Subscribe to our Channel to get regular Video Lessons in Python Programming.
Because we are a slow talker, we recommend you use the YouTube "Tools Cog" on the player bar to watch the video at a speed of 1.5x or even 1.75x.
In this Lesson we learn about using the Python Random Number Generator to simulate a Dice Roll.
We also learn how to use Groups of Keyboard characters to make pictures for Python console programs.
Resources Download Link:
You do not have to use PyScripter for our Course. All of the program code will run in Python 3.7 or higher.
So if you want to use other popular Python IDE’s like PyCharm or MU, that will be okay.
In this Python Lesson we will work on learning the following skills:
- How to use the Random Number Generator to simulate a Dice Roll.
- How to Structure our Program in a sequence of subroutines controlled by main().
- How to set up a Program Loop so that Program Processing can be repeated as many times as the User wants to.
- How to use Subroutine defs to isolate processes and work on them separately.
- How to create Dice Picture images by using Groups of Keyboard Characters.
- How to pass variable values to different subroutines using the def brackets, instead of using Global Variables.
- How to make a single Dice Roll Simulator.
- How to make a Dice Rolling Game.
- How to make Two Rolling Dice with console character Picture Images.
Using logically organised subroutine driven from a Main Process is a critical part of programming in all computer languages.
It is vitally important to study and understand the program code, as well as the organisation structure of the program.
The learning here will be essential for future Python Programming Lessons we will be progressively adding to our Channel.
Because we are a slow talker, we recommend you use the YouTube "Tools Cog" on the player bar to watch the video at a speed of 1.5x or even 1.75x.
If you are a Teacher watching this video then click the downloads link and get all of the lesson materials for your students.
Give these resources to your students and we think you will find that some of them will "get it" very quickly. The other students need to watch this video which goes through everything in full detail slowly step by step with repetition of examples.
This is a detailed video, if you want to fast track learning, then just Download and quickly work through the PDF of Step by Step Instructions using the Link given further down below.
There is also an Introduction and Overview PDF document giving a set of Learning Objectives for the Lesson included in the Lesson Downloads.
Then for anything you do not fully understand in these two documents, simply use the Timeline Index below to go and watch the relevant section of Video explanation.
If you have the time it will be extremely beneficial to watch the entire video to maximize learning outcomes.
VIDEO TIMELINE INDEX:
(Click on the time number to jump to that section of the video).
00:00 to 00:15 Introduction to Dice Rolling
00:15 to 02:10 Preview of Completed Programs
02:10 to 03:34 Learning Objectives for the Lesson
03:34 to 05:21 Overview of Using Loops to Repeat Processes
05:21 to 07:40 Overview of Passing Variable Values between Subroutines
07:40 to 08:40 Preview of Challenge Task 1
08:40 to 09:45 Preview of Challenge Task 2
09:45 to 10:45 Preview of Challenge Task 3
10:45 to 17:23 Roll One Dice – V1 Set up Initial Defs
17:23 to 19:13 Roll One Dice – V2 Getting a Dice Roll Value
19:13 to 21:32 Roll One Dice – V3 Getting Repeated Rolls
21:32 to 25:45 Roll One Dice – V4 Dice Picture Display
25:45 to 26:15 CHALLENGE 1 - Make all Dice Result Pictures Display
26:15 to 27:30 CHALLENGE 2 – Lucky Triple Fives Dice Game
27:30 to 29:18 CHALLENGE 3 – Roll Two Dice with Results Displayed
29:18 to 29:45 Our Website Python Programming Course
29:45 to 31:19 Video Wrap Up and Outro
This video will be useful for anyone learning Computing, especially students doing VCE Applied Computing or VCE Software Development or HSC Computing high school courses in Australia, and GCSE in the UK.
Check with your Teacher or Instructor before getting any Downloads from our Website, as they may already have these materials for you.
You can download a hard copy of the Step By Step Instructions Guide, and the Full Program Code at the following link:
Check with your Teacher or Instructor first, as they may already have these Download materials for you.
You can check out our full Python Programming Course at the following link:
We are planning to make a number of Structured Programming Videos that will be a great course for people to learn how to Program in Python.
Like this video if you found it helpful.
Subscribe to our Channel to get notified of our weekly video updates.
Enjoy,
Passy
Because we are a slow talker, we recommend you use the YouTube "Tools Cog" on the player bar to watch the video at a speed of 1.5x or even 1.75x.
In this Lesson we learn about using the Python Random Number Generator to simulate a Dice Roll.
We also learn how to use Groups of Keyboard characters to make pictures for Python console programs.
Resources Download Link:
You do not have to use PyScripter for our Course. All of the program code will run in Python 3.7 or higher.
So if you want to use other popular Python IDE’s like PyCharm or MU, that will be okay.
In this Python Lesson we will work on learning the following skills:
- How to use the Random Number Generator to simulate a Dice Roll.
- How to Structure our Program in a sequence of subroutines controlled by main().
- How to set up a Program Loop so that Program Processing can be repeated as many times as the User wants to.
- How to use Subroutine defs to isolate processes and work on them separately.
- How to create Dice Picture images by using Groups of Keyboard Characters.
- How to pass variable values to different subroutines using the def brackets, instead of using Global Variables.
- How to make a single Dice Roll Simulator.
- How to make a Dice Rolling Game.
- How to make Two Rolling Dice with console character Picture Images.
Using logically organised subroutine driven from a Main Process is a critical part of programming in all computer languages.
It is vitally important to study and understand the program code, as well as the organisation structure of the program.
The learning here will be essential for future Python Programming Lessons we will be progressively adding to our Channel.
Because we are a slow talker, we recommend you use the YouTube "Tools Cog" on the player bar to watch the video at a speed of 1.5x or even 1.75x.
If you are a Teacher watching this video then click the downloads link and get all of the lesson materials for your students.
Give these resources to your students and we think you will find that some of them will "get it" very quickly. The other students need to watch this video which goes through everything in full detail slowly step by step with repetition of examples.
This is a detailed video, if you want to fast track learning, then just Download and quickly work through the PDF of Step by Step Instructions using the Link given further down below.
There is also an Introduction and Overview PDF document giving a set of Learning Objectives for the Lesson included in the Lesson Downloads.
Then for anything you do not fully understand in these two documents, simply use the Timeline Index below to go and watch the relevant section of Video explanation.
If you have the time it will be extremely beneficial to watch the entire video to maximize learning outcomes.
VIDEO TIMELINE INDEX:
(Click on the time number to jump to that section of the video).
00:00 to 00:15 Introduction to Dice Rolling
00:15 to 02:10 Preview of Completed Programs
02:10 to 03:34 Learning Objectives for the Lesson
03:34 to 05:21 Overview of Using Loops to Repeat Processes
05:21 to 07:40 Overview of Passing Variable Values between Subroutines
07:40 to 08:40 Preview of Challenge Task 1
08:40 to 09:45 Preview of Challenge Task 2
09:45 to 10:45 Preview of Challenge Task 3
10:45 to 17:23 Roll One Dice – V1 Set up Initial Defs
17:23 to 19:13 Roll One Dice – V2 Getting a Dice Roll Value
19:13 to 21:32 Roll One Dice – V3 Getting Repeated Rolls
21:32 to 25:45 Roll One Dice – V4 Dice Picture Display
25:45 to 26:15 CHALLENGE 1 - Make all Dice Result Pictures Display
26:15 to 27:30 CHALLENGE 2 – Lucky Triple Fives Dice Game
27:30 to 29:18 CHALLENGE 3 – Roll Two Dice with Results Displayed
29:18 to 29:45 Our Website Python Programming Course
29:45 to 31:19 Video Wrap Up and Outro
This video will be useful for anyone learning Computing, especially students doing VCE Applied Computing or VCE Software Development or HSC Computing high school courses in Australia, and GCSE in the UK.
Check with your Teacher or Instructor before getting any Downloads from our Website, as they may already have these materials for you.
You can download a hard copy of the Step By Step Instructions Guide, and the Full Program Code at the following link:
Check with your Teacher or Instructor first, as they may already have these Download materials for you.
You can check out our full Python Programming Course at the following link:
We are planning to make a number of Structured Programming Videos that will be a great course for people to learn how to Program in Python.
Like this video if you found it helpful.
Subscribe to our Channel to get notified of our weekly video updates.
Enjoy,
Passy