Term 3.1 Basic Python Code 

For the next term we are going to work on programming with Python. The version we use at school can be freely downloaded here  

Introducing Python and basic maths functions 

To start with lets get to grips with the basic operations on Python: 

Mathematical operations in Python are expressed like this: 

Addition + 

Subtraction – 

Multiplication * 

Division / 

Let’s try using the first window on IDLE to see what happens when we type these equations one at a time: 

300+400 

987-653 

12*9 

30/6 

Try Your Own Python Math

Change the numbers below (e.g., use * to multiply, / to divide) and click Run!

Output:

Click 'Run Code' to start...

Now let’s try this all again on your computer using IDLE:

To start with you need to search for and open IDLE: 

File 
IDLE Shell 3.12.2 
Edit Shell Debug Options Window Hel 
Python 3 .12. 2 (tags/v3 . 12.2:6abd 
on Win32 
Type "help" 
" copy ghC " 
" credi 
300+400 
700

Hopefully you saw that you could use Python to solve a basic mathematical equation for you.