Welcome to level 12
### Welcome to level 12 By the end of this lesson, you can: * use functions
Functions!
### Functions! In this level you'll learn how to use functions. A function is a block of code you can easily use multiple times. Exercise: * Write down the lyrics to 'twinkle twinkle little star' * Mark the returning lyrics
Twinkle Twinkle little star!
### Twinkle Twinkle little star! In this program you see an example of a function. Let's see what happens if you fill in the rest of the song!
Functions
### Functions As you could see in the example a function is a block of code that can be called anytime. You use `define` to set the function and `call` to use it.
Use # for a neat code
### Use # for a neat code Remember to keep your code neat and readable by using lines starting with # explaining what that part of the code does! This is especially useful when making functions!
Debugging
### Debugging Let's debug this code!
Let's check out the adventures!
### Let's check out the adventures! Enjoy the adventures in level 12!
Let's review!
### Let's review! What did you learn today?
Let's review!
### Let's review! Which adventure did you like best? Why? Which adventure did you like least? Why?
Show and tell!
### Show and tell! Would anyone like to show the class a program they've made?
Congratulations!
### Congratulations! You have reached the end of Hedy Advanced! You can continue learning in Hedy Expert (level 13-16), where you can learn how to write real Python code. Or feel free to stay in Hedy Advanced and come up with your own programs, of course! Next level we will make some changes in the language so you can use it in all places where Python is used.