The IDLE Interpreter

A very powerful beast. Works magic with numbers. It’s kind of like a calculator on steroids. Work out what the following operations do by typing them into the IDLE interpreter shell and hitting ENTER. Try to work out what each line of code is doing.

2+5 	
67/34 	
30*4
4<10 	
3==6
22-7
23>=5
3!=5 	
39==39
“hello” + “world”
“hello” * 3
list(range(0,100,2))
len(“hello there”)
The IDLE Interpreter Shell

Tasks

  1. Type the commands into the IDLE interpreter, and make a note of what each line does
  2. Save & label your code