1 / 14

Do it now activity - PowerPoint PPT Presentation

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

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

PowerPoint Slideshow about 'Do it now activity' - elsu

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

Correct the 8 syntax errors:

Age = input(“How old are you?”

If age = 10

Print(You are 10”)

else:

print(“You are not 10”)

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:

Example Pseudocode

Understand how to use nested if statements in your programming

Learning objectives

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning outcomes

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

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

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

New Learning

• www.Y8computing.weebly.com

• Term 4

• Lesson 5

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

Can you adapt the code to:

Can you use negation for this?

Nested

Selection statement

If

Else

Elif

Condition

Boolean

Negation

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

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

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

Use nested if, elif, else function

Correctly identify the flow of data through a program

Learning

objectives

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

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

Learning outcomes

I can ....