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
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
English,
3 months ago
Social Sciences,
3 months ago
French,
7 months ago
Computer Science,
7 months ago
English,
11 months ago