Programming is the process of writing instructions for computers to follow.
- Solve problems for people
- Express an idea precisely
- Automate repetitive work
- Build tools that change what is possible
name = "Ada"
age = 36
language = "Python"
def greet(name):
return f"Hello, {name}!"
- Give a useful operation a name
- Accept inputs
- Return an output
Write an is_even(number) function that returns True for even numbers.
When you are ready, show the solution.
def is_even(number):
return number % 2 == 0
- Focus on code
- Ask for help
- Test and iterate