HOME/Articles/

matplotlib example matpolotlib 01 (snippet)

Article Outline

Python matplotlib example 'matpolotlib 01'

Functions in program:

  • def square_of_sum(L):

python matpolotlib 01

Python matplotlib example: matpolotlib 01

def square_of_sum(L):
    total = 0
    for i in L:
        total += i ** 2
    print(total)
    return total
L = [ix for ix in range(10)]
square_of_sum(L)