English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Do you modify a string in Python? - Computer Science

Advertisements
Advertisements

Question

Do you modify a string in Python?

Short Note

Solution

  • No, because strings in python are immutable.
  • That means once you define a string, modifications or deletion are not allowed.
  • If we want to modify the string, a new string value can be assigned to the existing string variable.
shaalaa.com
Introduction to Strings
  Is there an error in this question or solution?
Chapter 8: Strings and String manipulation - Evaluation [Page 130]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 8 Strings and String manipulation
Evaluation | Q 2. | Page 130
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×