MCQ Single Best Answer Not Set

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

ID: #4000 Python String MCQ 529 views
Question Info
#4000Q ID
Not SetDifficulty
Python String MCQTopic

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: Option B

Explanation

Today is a nice day

Share This Question

Challenge a friend or share with your study group.