small refactor + readme update

This commit is contained in:
2025-12-13 17:24:15 +01:00
parent fc3b0b79f7
commit 47da49e09d
4 changed files with 35 additions and 14 deletions

View File

@@ -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):