When I try to replace a number in a list with a letter, and run the code, I get an error. Why is that? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When I try to replace a number in a list with a letter, and run the code, I get an error. Why is that?

15th Sep 2016, 1:54 AM
Brad
3 Answers
+ 5
Oh, I see. I needed to put the letter inside quotes to identify it as a string.
15th Sep 2016, 1:57 AM
Brad
0
that is because values in tour list are not the same type of values.
20th Oct 2016, 10:26 AM
COAMI Akomagni
COAMI Akomagni - avatar
0
that is because values in tour list are not the same type of values.
20th Oct 2016, 10:29 AM
COAMI Akomagni
COAMI Akomagni - avatar