what is the result of this code??????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the result of this code???????

letters = ["a", "b", "c"] letters.append("d") print(len(letters))

7th Nov 2018, 3:18 PM
Mariana Bessa Mendes
Mariana Bessa Mendes - avatar
4 Answers
+ 7
Run it in the playground
7th Nov 2018, 3:26 PM
TurtleShell
TurtleShell - avatar
+ 2
Let me answer your question with another question If you have a list with 3 elements and add 1 element how many elements do you have then ?
7th Nov 2018, 3:58 PM
Mbrustler
Mbrustler - avatar
0
please, i am not getting it nums = "a", "b", "c", "d" nums. ("z") print( (nums))
29th Jun 2020, 6:34 PM
Faith Mundi
Faith Mundi - avatar
0
4 hoga
28th Dec 2020, 6:29 PM
Sonu Kumar Yadav
Sonu Kumar Yadav - avatar