Inner and Outer

  • + 0 comments
    import numpy 
    a = numpy.array(input().split(), int)
    b = numpy.array(input().split(), int)
    print(numpy.inner(a,b),
            numpy.outer(a,b),
            sep = "\n")