Generation from a List in Python

Instead of a range of numbers for generating a list, you can also use another list.

Let's create a list whose elements will be the numbers from the second list, raised to the square:

pythonlst = [i ** 2 for i in [1, 2, 3]]
print(lst) # will output [1, 4, 9]
Задание 1

Given a list:

pythonlst = [1, 2, 3, 4, 5]

Using comprehension, write the squares of the elements of the first list into a new list.

Задание 2

Given a list:

pythonlst = [1, 3, 5, 7, 9]

Using comprehension, write the elements of the first list multiplied by the number 3 into a new list.