Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
Immutable objects like strings, cannot have their values changed, so when we run their methods (like splice, with ":" notation), they simply [...] rather than change the value of the underlying object.
Answer
return a new value

Question
Immutable objects like strings, cannot have their values changed, so when we run their methods (like splice, with ":" notation), they simply [...] rather than change the value of the underlying object.
Answer
?

Question
Immutable objects like strings, cannot have their values changed, so when we run their methods (like splice, with ":" notation), they simply [...] rather than change the value of the underlying object.
Answer
return a new value
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
d. They have methods, such as insert() or append(), that change an objects value. Immutable objects, such as strings, cannot have their values changed, so when we run their methods, they simply <span>return a value rather than change the value of an underlying object. We can, of course, use this value by assigning it to a variable or using it as an argument in a function <span>

Original toplevel document (pdf)

owner: kkhosravi - (no access) - PYTHON_DATA_STRUCTURES_AND_ALGORITHMS.pdf, p29

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.