Welcome to level 6
### Welcome to level 6 By the end of this lesson, you can: * use `elif` to add a third option to the conditionals * use `in` to check if an item is on a list or not
Let's revise if and else
### Let's revise if and else Can you think of a code with `if` and `else`?
Using multiple lines
### Using multiple lines Conditionals are the part after the if or else. The conditionals should be placed on the next line from now on.
`elif`
### `elif` `elif` is a combination of the keywords `else` and `if` and you need it when you want to make 3 (or more!) options.
`in`
### `in` If you have practised with the `if`, `else` and elif keywords, you can also try the `in` keyword.
Keeping your code clean
### Keeping your code clean Now that you are getting to know more and more codes, your programs will be getting longer. Sometimes your codes will be messy and hard to read. To make your code nice and readable you can add comments in your code using a hashtag at the start of the line like this:
Debugging
### Debugging Let's debug this code!
Let's review!
### Let's review! Which adventure did you like best? Why? Which adventure did you like least? Why?
Let's review!
### Let's review! What did you learn today?
Show and tell!
### Show and tell! Would anyone like to show the class a program they've made?
Sneak peek into the next level...
### Sneak peek into the next level... In the next level you'll learn how to use maths in Hedy