Read Some Python π
Welcome to Python! π Don't worry β we'll go one tiny step at a time, and you can't break anything.
Coders read a lot of code before they write any. So let's read a little first.
Here is a tiny machine called a function. You give it a name, and when you
call it, it hands something back with the word return:
def greet():
return "Hi there!"
defis how you define (make) a function.greetis its name.returnhands a value back to whoever called it.
When we call greet(), it hands back the words "Hi there!". The words in
"quotes" are called a string β that's just coder-speak for text. π§΅
Read the code above, then answer below. π