python

Description

dancing in the elevator
Krishika Balakumar
Mind Map by Krishika Balakumar, updated more than 1 year ago
Krishika Balakumar
Created by Krishika Balakumar over 4 years ago
72
0

Resource summary

python
  1. it is a popular progaramming
    1. Used by mathematicians, scientists ,bankers, data anlayists and even kids
      1. It is easy to use and programme with it is even used to make artificial intelligence.
    2. IDLE- integrated development enviroment
      1. when coding go to search and type idle it will come up if it is downloaded on your computing
        1. 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
      2. ALGRITHMS
        1. If all correct simple steps are in the right place when solving a probelm precisely it is called an algrithm
          1. When you break a probelm in to small and simple steps, you make an algrithm this is called de-composition
        2. CODING
          1. 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
            1. USING SCRIPT MODE
              1. 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
              2. COMPUTER BUGS
                1. 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
                  1. DE-BUGGING
                    1. 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
                  2. FUNCTIONS
                    1. Functions are special built-in routines that do a specific job Functions appear in purple print() and input() are examples of functions
                  3. VARIABLES
                    1. 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
                      1. A variable name can contain only numbers,letter and underscores
                        1. A variable cannot start with a number
                          1. 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
                            1. To make your programme easier to understand, use meanigful name for your variables such as "firstName" rather than "vart"
                    2. SEQUENCING INSTRUCTIONS
                      1. 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
                        1. Sequencing instructions-the sequence order is important, Accuracy is important
                      Show full summary Hide full summary

                      Similar

                      Python Quiz
                      karljmurphy
                      Think Python
                      tsilvo2001
                      Basic Python - Print Formatting
                      Rebecca Noel
                      What is Python?
                      Daniel Ingram
                      Python
                      54671
                      Know your Python!
                      educ8ict
                      Basic Python - Strings
                      Rebecca Noel
                      Study on IoT systems design
                      Tomasz Cieplak
                      Python
                      Kirstie Wu
                      OpenSource Programming
                      Faheem Ahmed
                      Basic Python - Lists
                      Rebecca Noel