Find HCF and LCM
Write hcf_and_lcm(numbers) for a non-empty list of positive integers. Return a two-item list containing the HCF first and LCM second, using Python's math library.
Examples
[[12,18,24]][6,72]
Write hcf_and_lcm(numbers) for a non-empty list of positive integers. Return a two-item list containing the HCF first and LCM second, using Python's math library.
[[12,18,24]][6,72]