719025856 by Unknown
Author:Unknown
Language: eng
Format: epub
You canât change the value of an item in a tuple using this kind of syntax:
prices[1] = 234.56
Youâll get an error message that reads TypeError: 'tuple' object does not support item This message is telling you that you canât use the assignment operator, to change the value of an item in a tuple because a tuple is immutable, meaning its content cannot be changed.
Any method that alters, or even just copies, data in a list causes an error when you try it with a tuple. So the list methods and .sort() would fail when working with tuples. In short, a tuple makes sense if you want to show data to users without giving them any means to change any of the information.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sita - Warrior of Mithila (Book 2 of the Ram Chandra Series) by Amish(52307)
The Crystal Crypt by Dick Philip K(35859)
Cat's cradle by Kurt Vonnegut(14097)
Always and Forever, Lara Jean by Jenny Han(13830)
Ready Player One by Cline Ernest(13138)
The Last by Hanna Jameson(9369)
Year One by Nora Roberts(8673)
Persepolis Rising by James S. A. Corey(8432)
The remains of the day by Kazuo Ishiguro(7736)
Red Rising by Pierce Brown(7551)
Dark Space: The Second Trilogy (Books 4-6) (Dark Space Trilogies Book 2) by Jasper T. Scott(7510)
Never let me go by Kazuo Ishiguro(7451)
The handmaid's tale by Margaret Atwood(6993)
The Circle by Dave Eggers(6404)
Frank Herbert's Dune Saga Collection: Books 1 - 6 by Frank Herbert(6074)
Legacy by Ellery Kane(6030)
The Testaments by Margaret Atwood(5935)
Pandemic (The Extinction Files Book 1) by A.G. Riddle(5724)
Six Wakes by Mur Lafferty(5363)
![](/ebook_detail_files/space.gif)