+ 2
Can someone explain, why it is None.Plss
a =[1,5,7] b=[2,4,6] C=a.extend(b) print(c) Output=None.
3 Respostas
+ 5
a.extend(b) returns None.
Here is the right code:
a = [1, 5, 7]
b = [2, 4, 6]
a.extend(b)
print(a)
If what you wanted is to make a new variable c, then simply:
c = a + b
+ 4
I fixed your code. See this code:
https://code.sololearn.com/cQx5DhPgpwRk/?ref=app
0
Case sensitive dude