Getting startedFunctionsVariablesVariables 2InputsSelectionFlowchartsData typesPseudocode1Pseudocode2Subprogram1Subprogram2 |
Using the code editorComments (start with a #)Learn more: Python does maths?This is the integrated development environment (IDE) that allows you to quickly access Python. Try doing some simple maths like 12*3. Remember, in the coding universe the multiplication symbol is the asterix * and the division symbol is the forward slash /. Goodluck!
Try these challenges, simply type the sum then press "enter" (No need to use an = sign)
The magic 8 ball (Fortune teller)The magic 8 ball fortune teller works like this:
[object Object]
Magic 8 ball done in PythonThe code for the magic 8 ball program is below. It does the same thing as the magic 8 above except you can see the code (and change the code). Heres is what to do:
Test you knowledge
Loading KS3 – Python – Introduction
|