write a program to insert an element into the array and
print all the element ?



write a program to insert an element into the array and print all the element ?..

Answer / Anand Tiwari

Here's an example of a program in Python that inserts an element into an array (list) and prints all elements:n```nmy_list = [1, 2, 3]nmy_list.append(4)nprint(my_list)n``` This will output: `[1, 2, 3, 4]`. In this example, we have a list called 'my_list' that initially contains the numbers 1 through 3. We then append the number 4 to the end of the list using the '.append()' method, and finally print out all elements using the 'nprint()' function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Everything Else AllOther Interview Questions

we need to change 100 Rs and it must contain 50 Note equal to 100 Rs by adding 1 5 10 20???

1 Answers  


why history is interesting?

1 Answers  


Shirley cycled from home for 2hours 20 mins at an average speed of 15km per hour. a) Work out the distance she has cycled She then cycled back home in 2hours 40 mins b) Work out her average speed for the whole journey

1 Answers  


I have a construction Company i want to know the applicability of service tax on it

0 Answers  


How to get a quick upgrading for the game Grand Battle? Have anyone played the free Android game Grand Battle? I am a novice in this game, and I notice that to be a successful commander, it is very important to get a quick upgrading. Could anyone give me some advice? Thank you so much!

1 Answers  


pls money is my problem now to help my family. tell others and give them my email pls

0 Answers  


Describe two incidents that drastically changed your approach to life?

0 Answers  


What is F.O.R.

1 Answers   MAIDC Maharashtra Agro Industries Development Corporation,


WHAT DOES CONSUMER'S SOVEREIGNTY MEANS

0 Answers  


Sbi Intervew Results When will annouce sbi clerical interview results of? any body have any ideas/ I had attended interview on 26th april 2010 at bangaloe....

2 Answers  


Hello sir /ma'am... Plz help me out..... I selected in ADO THE LIC.... Every people saying this is bad job..is this right? Whether should I join or not?

1 Answers  


hi peers . i have completed my graduation n i would like to appear for the groups so kindly help me in suggesting syllabus n how to start the preparation as i am new to this type of exams. if possible kindly send ur suggestions n ideas to my id bharathreddy_471@ya.com

0 Answers  


Categories