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]

Your solution

Python

Results

Python starts when you run or submit this challenge.

Back to Lesson