Delete all even numbers | Python

April 24th, 2021 11:17:31 PM

					
# Deleting all even numbers from a list a = [1,2,3,4,5] del a[1::2] print(a)

Featured Posts