15 lines
256 B
Python
15 lines
256 B
Python
#!/usr/bin/python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""Rozwiązanie zadania 104."""
|
|
|
|
def sum_from_one_to_n(number):
|
|
"""Placeholder"""
|
|
if number < 1:
|
|
return 0
|
|
ret = 0
|
|
for ile in range(1, number + 1):
|
|
ret += ile * ile
|
|
return ret
|
|
|