हिंदी

Given the following Tuple. Tup = (10, 20, 30, 50) Which of the following statements will result in an error? - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Given the following Tuple.

Tup = (10, 20, 30, 50)

Which of the following statements will result in an error?

विकल्प

  • print(Tup [0])
  • Tup.insert (2, 3)
  • print(Tup[1:2])
  • print(len(Tup))
MCQ
Advertisements

उत्तर

Tup.insert (2, 3)

Explanation:

Tuples are immutable and will not work with the insert method.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2022-2023 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×