1 / 14

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”). Learning objectives. Homework. Pseudocode. You will be given a home learning sheet to complete for homework this term. Complete challenge 2

elsu
Download Presentation

Do it now activity

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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”)

  2. 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:

  3. Example Pseudocode

  4. AIM Understand how to use nested if statements in your programming

  5. Learning objectives Use nested if, elif, else function Correctly identify the flow of data through a program

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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. Learning outcomes I can ....

More Related