Multiple choice

which of the following would print out exactly "My name is: Mr. Forsyth" ?

  1. print("My name is Mr. Forsyth")

  2. print("My name is: Mr. Forsyth")

  3. print('"My name is Mr. Forsyth"')

  4. print('"My name is: Mr. Forsyth"')

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To print a string that contains double quotes, you must wrap the entire string in single quotes.