Single Choice Not Set

QWhat type of error will be shown after the following statement?
a = {7)

ID: #3795 Python Errors and Exceptions Handling 488 views
Question Info
#3795Q ID
Not SetDifficulty
Python Errors and Exceptions HandlingTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A SyntaxError
  • B TypeError
  • C ValueError
  • D NameError
Correct Answer

Explanation

SyntaxError
  Input In [3]
    a = {7)
          ^
SyntaxError: closing parenthesis ')' does not match opening parenthesis '{'

Share This Question

Challenge a friend or share with your study group.