Aug-18-2021, 05:57 AM
format_list = lambda x: [i for i in x[1::2]] new_list = format_list(["A", "B", "C", "D", "E", "F"]) print(new_list)
Output:['B', 'D', 'F'] | list - 2 questions: |
| |
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Discord bot that asks questions and based on response answers or asks more questions | absinthium | 1 | 57,278 | Nov-25-2017, 06:21 AM Last Post: heiner55 | |