bye, element...

catundanatalia

Natália Catunda

Posted on June 15, 2020

bye, element...

Remove in a randomic way any array elemet.

List=["baby","computer","mouse","car","nootebook"]
print(List.pop())
print(List)
Enter fullscreen mode Exit fullscreen mode

and if you want... remove a specific element you can print them
Like:

list=["books","store","location"]
print(list.pop(2))
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
catundanatalia
Natália Catunda

Posted on June 15, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

bye, element...
beginners bye, element...

June 15, 2020