Mapa mental
Python

Mind map: Python
Contenido del mapa
Python
How to fry an egg:
- 1. Get a frying pan
- 2. Put pan on hob
- 3. Turn on hob
- 4. Put oil in pan
- 5. Hold egg over pan
- 6. Break egg
Algorithms
- Using a set of instructions
- In order to do a job
- Using a set of instructions
Sequences
- The order in which the computer has to solve the problem
Debugging
- Looking through to check mistakes in codes
When writing in python to add text you need:
- Print ("Hello")
You can save a program and then run it again later on
- Used in all type of programming
- Break down a problem
- Decomposition
- Break down a problem
- Used in all type of programming
Comments
- They are useful to document your program and make it easier to understand your code
- They do not affect the way your program runs
- Comments start with # and appear in red
IDLE - Integrated Development environment
- Two models
- Interactive mode
- Uses all shell window
- Script mode
- Uses editor window
- Interactive mode
- Two models
Variables
- A variable can only contain number, letters and underscores
- A variable cannot start with a number
- To make your program easier to underestand, use meanigful names for variable such as 'firstName' rather than 'var1'
- You cant use a Python "reserved word" as a variable name for example class is a reserved word so class= input() will result in a syntax error
Functions
- Functions are special built-in routines that do a specific job
- Functions appear in purple
·
Información
- Descripción
- Talks about: Variables Comments Functions Strings And other helpful information regarding Python
- Creado por
- Hannah Cameron
- Visitas
- 5
- Valoración