3. WHAT IS A FUNCTION?
A block of code grouped
together that can be
run at any point in our
program.
4. Try creating this functionto pull a rabbit from a
hat!Don’t forget the magicword though!
5. Try out this function.Whatdoes that bit in
brackets do?
6. YOUR CHALLENGE
Add to your program so it
tells the user whether or
not their word is a
palindrome.
Hint: try using an if statement to
compare the original word with the
reversed word.
7. You should have added somethinglike thisto the
end of your program.