Given an Optional, what are three different ways of printing it when it is present and not

Question:

Given an Optional, what are three different ways of printing it when it is present and not printing anything when it isn’t? Which of these can be adapted to print the string "None" if no string is present?

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: