Do it now activity
Download
1 / 14

Do it now activity - PowerPoint PPT Presentation


  • 65 Views
  • Uploaded on

Do it now activity. Correct the 8 syntax errors: Age = input(“How old are you?” If age = 10 Print(You are 10”) else: print(“You are not 10”). Learning objectives. Homework. Pseudocode. You will be given a home learning sheet to complete for homework this term. Complete challenge 2

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Do it now activity' - elsu


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Do it now activity

Do it now activity

Correct the 8 syntax errors:

Age = input(“How old are you?”

If age = 10

Print(You are 10”)

else:

print(“You are not 10”)


Do it now activity

Learning

objectives

Homework

Pseudocode

You will be given a home learning sheet to complete for homework this term.

Complete challenge 2

Your teacher will explain what you need to do.

Due:


Do it now activity

Example Pseudocode


Do it now activity

AIM

Understand how to use nested if statements in your programming


Do it now activity

Learning objectives

Use nested if, elif, else function

Correctly identify the flow of data through a program


Do it now activity

Learning outcomes

By the end of this lesson you will be able to ....


Do it now activity

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

New Learning

Can you identify who did the crime?

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Do it now activity

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

New Learning

  • Download and investigate the program called ‘nested selection statements’ from

  • www.Y8computing.weebly.com

  • Term 4

  • Lesson 5

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Do it now activity

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

Independent task

Can you adapt the code to:

Check if the user has entered a correct username and password?

Username = DsmithPassword = teapot

Can you use negation for this?

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Do it now activity

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

Independent task

You can use and to check if more than one statement is true ie

if name == “Dave” and age == 12:

Can you use this in your program?

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Copy keyword

Copy Keyword

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

Copy Keyword

Nesting: When control structures are inserted within other control structures.

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Do it now activity

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

Talk task

Why did you need to create a nested selection statement for this task?

Why did you need to create an else statement that was outside of the nesting?

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Plenary

Plenary

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

Three stars and a wish.

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation


Do it now activity

Learning outcomes

I can ....