Computer Science, asked by jashika5, 7 months ago

print n, is an even number)
What is the difference between Append( ) & Insert( ). Explain with 3
suitable example from Python
. Read the given code

Answers

Answered by RuwaisnZaid
1

Explanation:

append() is use add a data in given list

eg: = l=[1,2,3]

l.append(5)

l=[1,2,3,4,5]

insert () is used to add a data using index no

l.insert(2,6)

l=[1,2,6,3,4,5]

follow me

Similar questions