GoConqr has a new look! Let us know what you think.

Mind map

Python

Hannah Cameron Computing Year 8 English

Mind map about Python: algorithms, sequences, debugging, variables, functions and comments

Mind map: Python

Map content

Python

  1. 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
  2. Algorithms

    • Using a set of instructions
      • In order to do a job
  3. Sequences

    • The order in which the computer has to solve the problem
  4. Debugging

    • Looking through to check mistakes in codes
  5. When writing in python to add text you need:

    • Print ("Hello")
  6. You can save a program and then run it again later on

    • Used in all type of programming
      • Break down a problem
        • Decomposition
  7. 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
  8. IDLE - Integrated Development environment

    • Two models
      • Interactive mode
        • Uses all shell window
      • Script mode
        • Uses editor window
  9. 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
  10. Functions

    • Functions are special built-in routines that do a specific job
    • Functions appear in purple
  11. ·

Information

Description
Talks about: Variables Comments Functions Strings And other helpful information regarding Python
Created by
Hannah Cameron
Views
5
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?