Using the sympy.ilcm()
method, we can find the least common multiple of two nonnegative integers, which is passed as a parameter to sympy.ilcm ()
.
Syntax:
sympy.ilcm (var1, var2)
Return: Return value of least common multiple of two nonnegative integers.
Example # 1:
In this example, we can see that using sympy.ilcm ()
we can find the smallest common multiple of any two nonnegative integers passed as parameters.

Output:
6
Example # 2:

Output:
42
Acquire and analyze data from all corners of the social web with Python. This book is for intermediate Python developers who want to engage with the use of public APIs to collect data from social m...
23/09/2020
For many decades, some powerful trends have been in place. Computer hardware has rap idly been getting faster, cheaper and smaller. Internet bandwidth (that is, its information carrying capacity) has...
23/09/2020
Learning to code is tremendous fun as you can get instant results, no matter how much more you have to learn. In fact, it’s such fun creating games and programs that it feels effortless once you’r...
23/09/2020
It’s in all of us. Data science is what makes us humans what we are today. No, not the computerdriven da...
10/07/2020