Write a function odd_square_even_double_modify(items) that modifies the list items
in place: every odd number is replaced by its square and every even number is
replaced by twice its value. The function returns nothing -- the caller sees the
change through the list that was passed in.
Example
items = [1, 2, 3, 4]
odd_square_even_double_modify(items)
items -> [1, 4, 9, 8]
Implement this function:
def odd_square_even_double_modify(items: list) -> None:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: items.
Input
[1, 2, 3, 4]
Output
[1, 4, 9, 8]