Plz explain the difference btwn set operations: remove, delete, update | Sololearn: Learn to code for FREE!
0

Plz explain the difference btwn set operations: remove, delete, update

2nd Sep 2016, 6:17 PM
Simran Madhok
2 Respuestas
0
If you mean Set methods, update(t) will update your set with elements from t, and remove(t) will remove t from set. AFAIK, there's no delete() method. Everything can be found on docs.python.org :)
3rd Sep 2016, 2:07 PM
trueneu
trueneu - avatar
0
ubdate are used to replace by a new valu remove used to delete a value
4th Dec 2016, 2:10 PM
MANICKAM . R
MANICKAM . R - avatar