Whether String Is Immutable or Mutable #5 | String Tutorials | Python Programming | SDP Guruji

Опубликовано: 04 Декабрь 2020
на канале: SDP Guruji
99
21

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


На этой странице сайта вы можете посмотреть видео онлайн Whether String Is Immutable or Mutable #5 | String Tutorials | Python Programming | SDP Guruji длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь SDP Guruji 04 Декабрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 99 раз и оно понравилось 21 зрителям. Приятного просмотра!