richu74
richu74 richu74
  • 03-11-2019
  • Computers and Technology
contestada

write a difference between append () and extend ()method of list​

Respuesta :

N3liya
N3liya N3liya
  • 03-11-2019

Answer:

..

Explanation:

append adds its argument as a single element to the end of a list the length of the list itself will increase by one. extend iterates over its argument adding each element to the list, extending the list. the length of the list will increase by however many elements were in the iterable argument

Answer Link

Otras preguntas

What is a static visual in art
If you are interested in a specific employer, but there are no job openings with the company, what steps should you take while you wait for the company’s hiring
Asteroids are between 1000 km and less than 10 m in diameter. What is the diameter of most asteroids?
A rectangle has a length five less than the width if the perimeter is 14 units find the width and length
Daisy has 5 1/2 pounds of flour.She uses 4/5 of it to bake bread. How much flour does she use to bake bread?
Which of the following proved to be the least dangerous to emigrants on the oregon trail?A. drowningB. accidentsC. diseaseD. Native Americans
A gardener found that he was able to plant 1/4 of a packet of flower seeds in 1/5 of a garden.At this rate how much of the garden would he cover with the entire
Can someone help me pls ?
Beth wants a job in fashion where she can be creative. It is important to her that she be paid well, but it is more important to her to have free time to spend
Write the polynomials in standard form: (15–7xy^2)–(y^3–y^2x–15)