0

So you can't change characters of a string?

2nd Aug 2016, 6:48 PM
Vaibhav C Anil
Vaibhav C Anil - avatar
2 Answers
0
string imutable data type so you can not change characters of a string where as list is a mutable and you can change any element of list.
3rd Aug 2016, 10:57 AM
Pradeep Bilaiya
Pradeep Bilaiya - avatar
0
Nop, you can't really edit a string but there are bypasses As s = "text" print s >>> text s += "ing" print s >>> texting
7th Aug 2016, 4:08 PM
cedric