0 results for
ICT
Computing
Responsive image

Intro to Coding

0 results forGuest
Overview
Flight Path
Learning Objectives
0 results forGuest
IDSkill_name
 1 I can create a sequence - 'a set of steps to do something'
 2 I can create create a 'Hello World' program in Python
 3 I can identify and correct common errors in Python programs
 4 I can create, save and test a 'Hello World' program

🏁 Learning Objective 1 :- I can create a sequence - 'a set of steps to do something'


What is Coding?

Coding is writing computer code to create a program, to solve a problem. Programs are created to implement algorithms. Algorithms can be represented as pseudocode or a flowchart, and programming is the translation of these into a computer program

To tell a computer to do something, a program must be written to tell it exactly what to do and how to do it. If an algorithm has been designed, the computer program will follow this algorithm, step-by-step, which will tell the computer exactly what it should do.

There are many different programming languages, some more complicated and complex than others. Among the most popular languages are:
  • Python
  • Java
  • C++
  • BASIC
  • Scratch

Activity - Coding Dock The Block

Create a code sequence to move Block A onto Block B


Click here to try the bitesize test

Update your objectives

control

🏁 Learning Objective 2 :- I can create create a 'Hello World' program in Python


Input - Output

In python we use built in functions to help us with our input and output. The function we use to output to the screen is print() and the function we use to get input from the keyboard is input().

Let us look at the the output method print() first.

Output Cheat sheet

Flight Path

Task 1 - Hello World

Create a simple program that will output 'Hello World' to the screen

  1. Type in PYTHON into your search bar.
  2. Now select IDLE.
  3. *This is called the Python 'Interpreter' or 'shell'



  4. Now Type the following code into the shell window

    print ("Hello World")

  5. Then press the 'enter' ↩ key

Challenge - Output


  • 1

    Say 'Hello World' instead of 'Hi'
    Complete the challenge below

Update your objectives

control

🏁 Learning Objective 3 :- I can identify and correct common errors in Python programs


Challenge - Debugging

...In order to display text output in python you need to surround your message in quotation marks. The print function also needs your output to be surrounded with brackets ().

print("Text goes here ")

  • 1

    Debugging
    Complete the challenge below
  • Hint - Check the brackets and quotation marks.

    Your code won’t run at all until you’ve fixed all of the errors: You need to fix all the lines of code even before the first line will run.

    Python is case sensitive: be careful with CAPITAL LETTERS and lowercase letters


Update your objectives

control

🏁 Learning Objective 4 :- I can create, save and test a 'Hello World' program


Task 2 - Creating a real program

From the shell menu Select 'File' > 'New File'.

Now type in the same code as before

print ("Hello World")

into the window and then select Run > Run Module (it will prompt you to save your file first - call your file name 'hello world')



Update your objectives

control

Lesson Challenge

  • E

    Extension Challenge
    Complete one or all of the extension challenges below

Click here for some ASCII art examples


Lesson Assessment



0 results forGuest
Recent Comments

Teacher Date: 2020-07-05


Guest