January 2019
Beginner
318 pages
8h 23m
English
We can update a string by reassigning a new value to the specified index. Refer to the following example:
#!/usr/bin/python3str1 = 'Hello Python!'print ("Updated String: - ", str1 [:6] + 'John')Output:Updated String: - Hello John
Read now
Unlock full access