Question Detail
Question
Which of the following string declarations is considered invalid in Python based on the 'Creating Strings' rule?
Correct Answer
Option A is the correct answer.
Detailed Explanation
The 'Creating Strings' section (page 4) states, 'Note: Quotes must match at the beginning and end!' Option A starts with a single quote (
') but ends with a double quote ("), which is invalid.
Hint
Carefully check the opening and closing quotes for each option.