Advertisements
Advertisements
Question
Which of the following statement(s) would give an error after executing the following code?
S="Welcome to class XII" # Statement 1
print(S) #Statement 2
S="Thank you" # Statement 3
S[0]= '@' # Statement 4
S=S+"Thank you" # Statement 5Options
Statement 3
Statement 4
Statement 5
Statements 4 and 5
MCQ
Advertisements
Solution
Statement 4
shaalaa.com
Built-in Exceptions in Python
Is there an error in this question or solution?
