What is wrong with this code ?????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0
26th Aug 2020, 2:55 PM
zeeshan
zeeshan - avatar
2 Answers
+ 5
Tuples are immutable that means their data can't be changed. So use list instead of tuple https://code.sololearn.com/cgIc7CpQyLF2/?ref=app
26th Aug 2020, 2:58 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 2
names is a tuple and tuples are immutable in python use the square brackets instead of the parentheses to make a list
26th Aug 2020, 2:58 PM
Ruba Kh
Ruba Kh - avatar