Single Choice Not Set

QWhat will be the output after the following statements?
x = 'Today is a nice day'
y = x[:9] + 'not ' + x[9:]
print(y)

ID: #3999 Python Errors and Exceptions Handling 343 views
Question Info
#3999Q ID
Not SetDifficulty
Python Errors and Exceptions HandlingTopic

Choose the Best Option

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

  • A TypeError
  • B Today is a nice day
  • C SyntaxError
  • D Today is not a nice day
Correct Answer

Explanation

Today is not a nice day

Share This Question

Challenge a friend or share with your study group.