PyImageSearch / imutils

A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not enough values to unpack (expected 2, got 0)

DeepakRajpurohit04 opened this issue · comments

I'm getting this error in 3rd line "apl=[],aex=[],ame=[],asg=[],ab=[];"

def main():
global n,i,e,b,sg,pl
apl=[],aex=[],ame=[],asg=[],ab=[]; ////error here
print("month employee bike saving")
n,e,b,sg=input().split()
for i in range(n):
earning(i,b);
expenses(i,b,e);
pl=(earning(i,b)-expenses(i,b,e))
apl.append[pl]
if i>1:
apl[i]=apl[i]+apl[i+1]
ame.append[earning(i,b)]
aex.append[expenses(i,b,e)]
asg.append[saving(i,b,sg)]
ab.append[bike(i,b,sg)]
print("month saving bike expenses earning profit/loss")
print(n,asg[i],ab[i],aex[i],ame[i],apl[i])
b=bike(i,b,sg)
sg=saving(i,b,sg)

main()