Generate Powers of Two

Create a function to generate a list of powers of two, up to a given number.

In mathematics, exponentiation is a fundamental operation that entails raising a base number to the power of an exponent, denoted as `base ** exponent`. For instance, `2**3` equals `8`. In Python, write a function named `power_of_two` that takes one argument `n` (a non-negative integer including `0`) and returns a list starting from `2 ** 0` up to `2 ** n`, inclusive. ### Parameters - `n` (integer): This parameter represents the highest power to which 2 should be raised `2**n`. ### Return Value - The function should return a list of integers, where each integer represents a power of two ranging from `0` to `n`. ### Examples ```python # Only element is 1 (2**0) power_of_two(0) # ➞ [1] # Power of two ranging from 2**0 to 2**1 power_of_two(1) # ➞ [1, 2] # Power of two ranging from 2**0 to 2**4 power_of_two(4) # ➞[1, 2, 4, 8, 16] ```