Parallel.py

Calculate parallel resistance for any number of resistors

 * 1) !/usr/bin/python3

import sys import numpy

elements = sys.argv[1:] a=numpy.array(elements,dtype=float) print (1/sum(1/a))