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

Mind map

Selection

Ben Gregory English

Map content

Selection

  1. Selection is when the program will only run the line of code that is true or false

    • Example: If the program is to output an animal sound and to do that it needs the user to input an the animal that makes that sound then the prigram will go through the code untill it finds the sound to go with that animal
      • A better way of describing it would be that the program will run through each line of code untill it finds an answer that is either true or false
  2. Function

    • A function is a block of reusable code that is used yo preform a single related action, for the function to work correctly and as expected you need to call the function, to call a function you dont actualy shout it out and tell it to come over or give it a ring on your phone you just type the function that you want to use into the code.
      • Python has a few functions built into it an example of one is "print". To use the print function you type the word print into the code then put an opening bracket and speech mark then type what you want the program to say after you have typed it you need to end it with another speech mark and a closing bracket.
        • What the print function will then do is it will tell the program to output whatever you have enter'd into the brackets and speech marks on to the screen allowing the end user to see the text.

Information

Description
Mind Map on Selection, created by Ben Gregory on 30/03/2016.
Created by
Ben Gregory
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?