New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Python - Why does this code output "None"?
a = [1,5,7] b = [2,4,6] c = a.extend(b) print (c)
2 Answers
+ 3
a.extend does not return anything but None. So the output is None.
a = [1,5,7] b = [2,4,6] c = a.extend(b) print (c)