Power and Root in Python
math.powmath.sqrtЗадание 1
Two numbers are given:
pythonnum1 = 5
num2 = 4
Raise the first number to the power of the second.
Задание 2
Given a dictionary:
pythondct = {
2: 4,
3: 2,
5: 4
}
Raise each key to the power of the value to get the following result:
python16.0
9.0
625.0
Задание 3
Given a number:
pythonnum = 16
Find the square root of this number.
Задание 4
Given a list:
pythonlst = [2, 3, 4]
Find the square root of the sum of the numbers in the given list.