Strings in Python, Python Strings Tutorials, Python Tutorials, Python for Beginners, How to check String is Immutable or Mutable, String in Hindi, Python Programming, Python Tutorials in Hindi
Greetings Viewers,
In the series of programming, in this tutorial, we will see whether strings are immutable or
mutable.
What is meant by immutable? Are strings immutable?
Immutable objects cannot be modified or changed.
Strings are immutable. They can only update by concatenation or assigning desired new string
to the same variable
Example:
my_str = “Viewers”
my_str[2] = “a” //modification will raise a TypeError
print(my_str)
Output:
TypeError
Practice!
Make sure that you didn’t miss this crucial and easy part.
Thank You!
N Yess !! Don’t hesitate to share your precious suggestions/feedbacks!! Get your all doubts crystal
clear!!
-----------------------------------------------------------------------------------------------------------------------------------
If you have missed anything regarding python, surf through these links below:
Concatenation and Overriding in String: • Concatenation and Overriding in Strin...
Errors in String Declaration: • Type Error and Index Error in String ...
String Slicing in Python: • How to Access Python String Character...
How to Store String in Variable: • Python String #1 | String Theory | Ho...
NameError in Python: • NameError in Python #10 | Exception H...
KeyError in Python: • KeyError in Python #9 | Exception Han...
ImportError in Python: • ImportError in Python #8 | Exception ...
AttributeError In Python: • AttributeError In Python #7 | Excepti...
--------------------------------------------------------------------------------------------------------------------------------------
You’ll also find us here!!
Website: https://sdpguruji.in/
Play Store App: https://play.google.com/store/apps/de...
Instagram: / sdpguruji
Facebook: / sdp.guruji.3
LinkedIn: / sdpguruji
Telegram: https://t.me/sdpguruji
--------------------------------------------------------------------------------------------------------------------------------------
For more such informative Python videos,
colour the thumbs up button blue, share the videos, and yes don’t forget to hit the subscribe button and press the bell icon for remainders.
Stay Tuned!!!
#SDPGuruji
#sdpguruji
#strings
#pythonstring
#mutable
#immutable
#pythontutorials
#stringsinpython
#pythonprogramming
#PythonSDPGuruji
#PythonTutorial
#Hindi
On this page of the site you can watch the video online Whether String Is Immutable or Mutable #5 | String Tutorials | Python Programming | SDP Guruji with a duration of hours minute second in good quality, which was uploaded by the user SDP Guruji 04 December 2020, share the link with friends and acquaintances, this video has already been watched 99 times on youtube and it was liked by 21 viewers. Enjoy your viewing!