DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python3: Deleting even and only showing uneven numbers from, set list.
def delete_starting_evens(lst): while (len(lst) > 0 and lst[0] % 2 == 0): lst = lst[1:] return lst
Source by www.codecademy.com #
PREVIOUS
NEXT
Tagged:
#Deleting
#showing
#uneven
#numbers
#set
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit