Zusammenfassung der Ressource
Python
- Programming language
- Even kids can use it
- It's very popular
- Used by a variety of people
- Software engineers
- Data analysts
- Mathematicians
- NASA
- Paint Shop Pro
- Google's search engine
- Civilisation 4 Computer Game
- CERN Large Hadron Collider Research
- Dropbox
- Algorithms
- The steps we give computers to solve problems
- Precise steps to solve problems in computing
- The simplest steps available
- Sequencing
- Computers use a lot of
sequencing
- Order is important
- Accuracy is important
- It is putting steps in order
- Debugging
- Taking problems out
- Removing errors from the coding
- IDLE Python
- Save Python files as (insert filename).py
- Keep variables the same
- eg: X needs to stay as X and not change to x
- Python example: m=5 n=6 t=m+n print t
- IDLE = Integrated Development Environment
- Has two modes
- Interactive and script mode
- Interactive mode lets you see your progress as you type the code
- Uses the Shell window
- Script mode lets you save your program and run it again later
- Uses the Editor window
- Decomposition
- Breaking steps down
- Then problems can be solved (easier)
- Decomposition leads to algorithms being made
- Variables
- A location in memory
- Where you can temporarily store text or numbers
- Used like an empty box or memory function on a calculator
- You can choose a name for the 'box' (the variable name)
- Can also change its contents in the program
- A variable name can only contain numbers, letters and underscores
- A variable name can't start with a number