INPUT & VARIABLESLearn what a variable is and how to use it.
Go to tutorial>> GIS SUBMIT>> |
VARIABLE NUMBER MACHINELearn how variables can be tinkered with.
Go to tutorial>> GIS SUBMIT>> |
5. IF Statements |
6. IFFY NUMBERS |
CAN YOU GO OFF THE RAILS?
12 hour clock to 24 hour clock.
User inputs 12 hour clock and am or pm and you will convert it to the 24 hour equivalent. (25 points) GIS SUBMIT>> |
DIVIDE BY 3
Ask for a number and the computer will tell you if you can divide it exactly by 3. Look up Modulo, if unsure. (25 points) GIS SUBMIT>> |
for loop
You use this loop when you know the maximum number of repeats. Always choose this type of loop when you can. Go to tutorial>> GIS SUBMIT>> |
while loop
This loop decides at the start if it will loop. Choose it when you don't know when you will stop. Go to tutorial>> GIS SUBMIT>> |
Repeat loop
There is NO repeat loop in Python, but in other languages such as Pascal it runs at LEAST ONCE and tests the condition at the end. Read More>> |
MARIO PYRAMID
User inputs a number. It then creates the appropriate sized pyramid. (35 points) e.g. Pyramid Size 3 x xxx xxxxx GIS SUBMIT>> |
Rocket Build Up!
Check the spaceship. The spaceship needs 51 hours to charge up. You need to set an alarm to check for it. The time now is 2pm. What time should the alarm go off? (25 points) GIS SUBMIT>> |
RUGBY CALCULATOR
Create a scoring system for Rugby. (Rugby Union or league, your choice) This program should ask for the two team names and each Try, conversion & penalty kick should be recorded seperately, so that at the end of the game. Not only do we know the scores for the 2 teams but also how the points were scored. (25 points) GIS SUBMIT>> |
Learn how to round numbers in Python to make currencies and generally tidy up your numbers!
Go To Tutorial>>
GIS Submit>>
Go To Tutorial>>
GIS Submit>>
Functions and procedures
After year 10 exams
tutorials
Using Random Numbers, lists and items
Learn how to use the random module to help you generate random data and materials for games.
More Info>>
GIS Submit>>
Learn how to use the random module to help you generate random data and materials for games.
More Info>>
GIS Submit>>
Retrieve From Multiple Lists
Learn how to use user inputs to retrieve and update list items. This is worth 40 points, so you'll need to step up your coding game to do this tutorial.
More Info>>
GIS SUBMIT>>
Learn how to use user inputs to retrieve and update list items. This is worth 40 points, so you'll need to step up your coding game to do this tutorial.
More Info>>
GIS SUBMIT>>
Challenges
STUDENT CREATED: THE ROASTING MACHINE
The Random Insult Generator. You have horrible comebacks, and just keep on getting roasted by everyone. This code will help you take your revenge. It must ask for the student’s name, and include that when roasting. There must be a random generator based upon a list. GIS Submit>> |
LAZY REPORT WRITER
A lazy economics teacher wants to write his reports really quickly. Create a Random report writer with a list of generic comments. It should ask for the number of students and then generate a random comment for each student. GIS Submit>> |
The big CHALLENGES
Which can you take on?
This is only a small sample of the many challenges you could take on, see what challenges take your fancy!