Untitled

Anonymous
plain_text
02/28/2024 6:44 AM
476 B
21
Indexable
Write a recursive function to calculate the factorial of a given number.
2. Write a function that takes a nested list of integers and adds up the elements from all the nested lists.
3. Write a function called middle that takes a list and returns a new list that contains all but the first and last elements. So middle ([1, 2, 3, 4]) should return [2, 3].
Editor is loading...
Leave a Comment