Mathematical Operations with Numbers in Python

summath.fsummath.factorial
Задание 1

Given a list:

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

Find the sum of the elements of this list.

Задание 2

Given a set:

pythonst = {2.3, 4, 7.8}

Find the sum of the elements of this list as a fractional number.

Задание 3

Two numbers are given:

pythonnum1 = 2
num2 = 15

Generate a random integer from the range given by our numbers. Then get its factorial.

Задание 4

Given a list:

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

Find the arithmetic mean of this list.