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]Optional website statistics, Google Analytics/Clarity and advertising (Meta/Google) help measure and support this free site. Your choice does not limit learning. Privacy policy.
These services may use cookies and receive browsing and device information. Change your choice later from the Privacy Policy page.