Write code that prints Hello if 1 is stored in spam, prints Howdy if 2 is stored

Question:

Write code that prints Hello if 1 is stored in spam, prints Howdy if 2 is stored in spam, and prints Greetings! if anything else is stored in spam.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: