---
# System prepended metadata

title: PythonEx1
tags: [Python]

---

# PythonEx1
Find $\displaystyle \sum_{i=1}^{10} i^5$.

- Solution 1:
```python=
total = 0
for i in range(1,11):
    total = total + i**5
print(total)
```
- Solution 2:
```python=
total = 0
for i in range(1,11):
    total += i**5
print(total)
```
- Solution 3:
```python=
values = [i**5 for i in range(1,11)]
sum(values)
```
- Solution 4:
```python=
sum([i**5 for i in range(1,11)])
```