title: find out the lcm of 2 numbers using Python
body: <pre class="lang-py prettyprint-override"><code>def calculate_lcm(x, y):
      if x &gt; y:
          greater = x
      else:
          greater = y
      while (True):
          if ((greater == x == 0) and (greater == y == 0)):
              lcm = greater
              break
          greater += 1
  
  
  num1 = int(input(&quot;Enter first number: &quot;))
  num2 = int(input(&quot;Enter second number: &quot;))
  # printing the result for the users  
  print(&quot;The L.C.M. of&quot;, num1, &quot;and&quot;, num2, &quot;is&quot;, calculate_lcm(num1, num2))
  </code></pre>
  <p>I am getting error please help me.</p>