Computer Science, asked by tanya2863, 10 months ago

if list =['red','blue','green','yellow'],What will be the output of :list.pop ()print (list)?​

Answers

Answered by CHERRYSEKHON
0

kya OUESTION hai.

please write full OUESTION.....

plzzzz follow me.....

Answered by ankurbadani84
8

Answer:

red, blue, green

Explanation:

pop function in Python is use to pop the last element in this list.

In the question we have  list =['red','blue','green','yellow']

list.pop () function will pop out yellow. So if you print the list after pop, it will display - red, blue, green

You can also remove a specific element from list. this is done by passing parameter to pop function.

Similar questions