English

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]= '@' - Computer Science (Python)

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 5

Options

  • Statement 3

  • Statement 4

  • Statement 5

  • Statements 4 and 5

MCQ

Solution

Statement 4

shaalaa.com
Built-in Exceptions
  Is there an error in this question or solution?
2022-2023 (March) Sample
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×