In this tutorial I cover the following sub-topics:
- Using the “import” function
- Using the Random generator
- Using recursion in Python
- Using Functions with arguments e.g. def marks(die1,die2,die3)
- Formatting strings and integers and converting text to upper case
- Using global and local variables
- Using the timer in Python
- Sequencing and Selection Statements and a lot more
This code is for a game that rolls three dice. If all three show the same number you score 10 points and if its just two you score 5 points otherwise you lose 2 points.
The original code will be emailed to you because I can’t upload it here due to file restrictions.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.
£2.50