class Algorithm:
def __init__(self, *algParts):
# Check if a single argument is a list, otherwise use variable arguments
if len(algParts) == 1 and isinstance(algParts[0], list):
self.algParts = list(algParts[0]) # Initialize with the given list
else...