Question: Implement the given functions according to the docstrings. # mapping def is _ greater _ than _ 5 ( numbers:list ) - > list: '

Implement the given functions according to the docstrings.
# mapping
def is_greater_than_5(numbers:list)-> list:
'''Given a list of numbers, return a list of bools corresponding to whether the number is greater than 5'''
...
# filtering
def filter_less_than_5(numbers:list)->list:
'''Given an list of numbers, return a list of numbers that are less than 5'''
...
# aggregation with filtering
def sum_of_two_digit_numbers(numbers:list):
'''Given a list of numbers find the sum of all two_digit_numbers.
'''
...
# aggregation with mapping
def is_all_has_a(words:list)->bool:
'''Given a list of words check if all words has the letter a(case insensitive) in it.
'''
...
# enumerate
def print_with_numbering(items):
'''
Print a list in multiple lines with numbering.
Eg.["apple","orange","banana"]
1. apple
2. orange
3. banana
'''
...
# zip
def parallel_print(countries, capitals):
'''
Print the countries and capitals in multiple line seperated by a hyphen with space around it.
'''
...
# key value list to dict
def make_dict(keys, values):
'''Create a dict with keys and values'''
...
# enumerate with filtering and map
def indices_of_big_words(words)-> list:
'''Given a list of words, find the indices of the big words(length greater than 5).
'''
...
# zip with mapping and aggregation
def decode_rle(chars:str, repeats:list)->str:
'''
Create a string with i-th char from chars repeated i-th value of repeats number of times.
Note rle refers to Run-length encoding
'''
...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!