fork download
  1. #Producto punto
  2.  
  3. L1,L2=(0,1,2,3,4),(5,6,7,8,9)
  4.  
  5. def PP(L1,L2):
  6. cont=0
  7. for i in range(len(L1)):
  8. cont+= L1[i]*L2[i]
  9. return cont
  10.  
  11. print(PP(L1,L2))
  12. print(len(L1))
Success #stdin #stdout 0.03s 9664KB
stdin
Standard input is empty
stdout
80
5