+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.

2/14/2020 2:12:06 PM

Cyber_Hound

3 Answers

New Answer

+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

+3

I fixed your code. See this code: https://code.sololearn.com/cQx5DhPgpwRk/?ref=app

0

Case sensitive dude