DEV Community

Alina-coder-97
Alina-coder-97

Posted on

Help Nastya

lalala

Top comments (2)

Collapse
 
askeridos profile image
Adam AUTUORI

L variable is in a local scope and is returned by a function.

myList = moving_window_average(y, n_neighbors = j)
print(type(myList)) # returns

for item in myList:
print(item)

What the hell is this program supposed to do ? There are no comments !

Collapse
 
alinacoder97 profile image
Alina-coder-97

Thank you very much, Adam!
This function is used to calculate moving window average for j neighbours of x in list X.
This is a task from a course, and I wanted to get advice from my friend, but I accidently posted it in this group.