Izračun vsote števil na intervalu (python)