x=[2.0,3.0] w=[0.5,2.0] bias=1.0 y=sum(a*b for a,b in zip(x,w))+bias print(y)