Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Quiz
3. Question 2
Summary

Instruction

Good! How about conditional statements?

Exercise

Write a function named print_parity that accepts a natural number. Check if the number is odd or even, and print one of the following appropriate messages:

  1. You provided an odd number.
  2. You provided an even number.