How To Reduse The Size Of A List In Python

[Solved] How To Reduse The Size Of A List In Python | Elixir - Code Explorer | yomemimo.com
Question : how to reduse the size of a list in python

Answered by : alex-5frzv9xp39ni

# Reduce size of list by 2 elements.
values = values[:-2]
print(values)
[10, 20, 30, 40, 50]
[10, 20, 30]

Source : | Last Update : Sat, 02 Jan 21

Answers related to how to reduse the size of a list in python

Code Explorer Popular Question For Elixir