small refactor + readme update
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/python
|
||||
from utils import parse_resistors
|
||||
from utils import parse_values
|
||||
|
||||
def get_input():
|
||||
raw_input_resistors = input("Enter resistor values separated by spaces or commas: ")
|
||||
resistors = parse_resistors(raw_input_resistors)
|
||||
resistors = parse_values(raw_input_resistors)
|
||||
return resistors
|
||||
|
||||
def calculate_resistance(resistors):
|
||||
|
||||
Reference in New Issue
Block a user