Post

Kara 🦇 🔊
Kara 🦇 🔊@0xkarasy·
@Python_Dv Tuples are immutable in Python. So, the code results in TypeError at line 3. Answer - B
English
0
0
0
380
pankaj prajapati
pankaj prajapati@pankajp23853007·
@Python_Dv B as tuple is immutable and assignment a[0]=2 is not valid statement. So Error will be printed.
English
0
0
0
229
Aayan Siddiquee
Aayan Siddiquee@salty_1069·
@Python_Dv error? maybe because initially it was a list that is mutable but then it was converted into a tuple that is supposed to be immutable. so the value at index zero cannot be changed anymore.
English
0
0
0
35
MyNameIsNoBody
MyNameIsNoBody@barsn13c11f18·
@Python_Dv TypeError: 'tuple' object does not support item assignment thank you chatGPT!
English
0
0
0
6
◇
@grand_kojo·
@Python_Dv B, Error. Tuples are immutable
English
0
0
0
8
Ramadan Banwo
Ramadan Banwo@RamadanBanwo·
@Python_Dv Error, because you can't change the elements of a tuple after creation
English
0
0
0
21
Abdulwahab khanit
Abdulwahab khanit@khanit_2217·
@Python_Dv Tuple is not index it doesn't accept indexing (dats assigning numbers inorder to access values)so it's (B) Syntex error
English
0
0
0
20
maj yaz
maj yaz@maj_yaz19930·
@Python_Dv Answer = C, we created a list and then converted it to tuple, the third line dose nothing s 'tuple' object doesn't support item assignment.
English
0
0
0
26
Web3 Jobs
Web3 Jobs@WEB3_JOBot·
@Python_Dv crack the code mainframe hunter level up your code-fu
English
0
0
0
207
Danny Ki
Danny Ki@web3willbefree·
@Python_Dv Is the output perhaps written in Java? 🤔
English
0
0
0
99
Paylaş