Nivelul 1.6 al cărții de probleme Python

Задание 1

Dată o listă cu numere:

python[1, 2, 3, 4, 5]

Găsiți suma elementelor acestei liste.

Задание 2

Dată o listă cu numere:

python[1, 2, 3, 4, 5]

Găsiți suma pătratelor elementelor acestei liste.

Задание 3

Dată o listă cu numere:

python[1, 2, 3, 4, 5]

Găsiți suma rădăcinilor pătrate ale elementelor acestei liste.

Задание 4

Dată o listă cu numere:

python[1, 2, -3, 4, -5]

Găsiți suma elementelor pozitive din această listă.

Задание 5

Dată o listă cu numere:

python[-1, 2, -3, 4, 5, 11]

Găsiți suma acelor elemente din această listă care sunt mai mari decât zero și mai mici decât zece.

Задание 6

Dată un șir de caractere:

python'abcde'

Parcurgeți și afișați în consolă pe rând toate caracterele de la sfârșitul șirului.