#Python_list_challenge1
***
Write a function named append_sum that has one parameter — a list named named lst.
The function should add the last two elements of lst together and append the result to lst. It should do this process three times and then return lst. **
For example, if lst started as [1, 1, 2], the final result should be [1, 1, 2, 3, 5, 8].
***
send your solution @pythonethbot
***
Write a function named append_sum that has one parameter — a list named named lst.
The function should add the last two elements of lst together and append the result to lst. It should do this process three times and then return lst. **
For example, if lst started as [1, 1, 2], the final result should be [1, 1, 2, 3, 5, 8].
***
send your solution @pythonethbot
#CODE_CHALLENGE #PYTHON_LIST #LOOPS #FUNCTIONS
1. Write a function called delete_starting_evens() that has a parameter named lst.
The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.
For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].
Make sure your function works even if every element in the list is even!
POST YOUR SOLUTION @Pydiscussion
1. Write a function called delete_starting_evens() that has a parameter named lst.
The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.
For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].
Make sure your function works even if every element in the list is even!
POST YOUR SOLUTION @Pydiscussion
Forwarded from Epython Lab (Asibeh Tenager)
#CODE_CHALLENGE #PYTHON_LIST #LOOPS #FUNCTIONS
1. Write a function called delete_starting_evens() that has a parameter named lst.
The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.
For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].
Make sure your function works even if every element in the list is even!
POST YOUR SOLUTION @PYTHONETHBOT
1. Write a function called delete_starting_evens() that has a parameter named lst.
The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.
For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].
Make sure your function works even if every element in the list is even!
POST YOUR SOLUTION @PYTHONETHBOT
#CODE_CHALLENGE #PYTHON_LIST #LOOPS #FUNCTIONS
1. Write a function called delete_starting_evens() that has a parameter named lst.
The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.
For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].
Make sure your function works even if every element in the list is even!
POST YOUR SOLUTION @Pydiscussion
1. Write a function called delete_starting_evens() that has a parameter named lst.
The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.
For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].
Make sure your function works even if every element in the list is even!
POST YOUR SOLUTION @Pydiscussion