basic-programming-learning-phase-1

Module 03 — Functions

Concepts

Practice prompts

  1. Write greet(name) that returns "Hello, {name}!".
  2. Write add(a, b=0) that returns the sum; give it a docstring.
  3. Write is_even(n) returning True/False.
  4. Write celsius_to_f(c) using f = c * 9/5 + 32.
  5. Write count_vowels(s) that counts a/e/i/o/u in a string.

Complete the TODOs in starters.py.