Mind map
python

Mind map: Python programming
Map content
python
it is a popular progaramming
- Used by mathematicians, scientists ,bankers, data anlayists and even kids
- It is easy to use and programme with it is even used to make artificial intelligence.
- Used by mathematicians, scientists ,bankers, data anlayists and even kids
IDLE- integrated development enviroment
- when coding go to search and type idle it will come up if it is downloaded on your computing
- There are 2 modes: Interactive mode lets you see your results as you type them, this mode uses the Shell window. The second mode is Script mode. script mode lets you save your program and run it again later,this mode uses the Editor window
- when coding go to search and type idle it will come up if it is downloaded on your computing
ALGRITHMS
- If all correct simple steps are in the right place when solving a probelm precisely it is called an algrithm
- When you break a probelm in to small and simple steps, you make an algrithm this is called de-composition
- If all correct simple steps are in the right place when solving a probelm precisely it is called an algrithm
CODING
- In IDLE's Interactive Mode, at the prompt, type: print("Hello World!"), Press Enter, the result will be : Hello World! Remember to spell print correctly and place the speech marks and brackets in the correct places or else the programme will not work correctly
- USING SCRIPT MODE
- In the Shell window, select File, New File from the menu Type: print ("What is your name?") firstname = input() print ("Hello, ",firstname) Save the program as MyFirstPython.py Select Run, Run Module or press F5 to execute (run) the program
- COMPUTER BUGS
- The name ‘Bug’ refers to an error in a program Thought to come from a real bug that crawled into some cogs in an early machine and stopped it working
- DE-BUGGING
- Syntax errors Reading interpreter feedback Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> primt ("Hello World!") NameError: name 'primt' is not defined
- FUNCTIONS
- Functions are special built-in routines that do a specific job Functions appear in purple print() and input() are examples of functions
VARIABLES
- A variable is a location in memeory in which you can temporarily store text or numbers because you can change the variable to a different value
- A variable name can contain only numbers,letter and underscores
- A variable cannot start with a number
- you cant use python "reserved word" as a variable name- fro example class is a reseved word so class=imput() will result in a syntax
- To make your programme easier to understand, use meanigful name for your variables such as "firstName" rather than "vart"
- you cant use python "reserved word" as a variable name- fro example class is a reseved word so class=imput() will result in a syntax
- A variable cannot start with a number
- A variable name can contain only numbers,letter and underscores
- A variable is a location in memeory in which you can temporarily store text or numbers because you can change the variable to a different value
SEQUENCING INSTRUCTIONS
- Sequencing instruction is when you pur steps one after the other. You need to use sequencing in coding. So the computer will do everything correctly
- Sequencing instructions-the sequence order is important, Accuracy is important
- Sequencing instruction is when you pur steps one after the other. You need to use sequencing in coding. So the computer will do everything correctly