A Few Python questions
<p>I'm trying to learn Python from a background in javascript. I saw someone make a recursive function to find the least common denominator and wondered why they didn't just use a loop, so, both for the experience and to amuse myself, I wrote a simpler one:</p>

<p>I came up with:</p>

<pre><code>def LCM(n,d):
    while(n%d++ != 0 ):
        continue
    return d-1
print(LCM(99,12))
</code></pre>

<p>Needless to say, for those of you that know Python, ++ isn't a valid operator. I also tried</p>

<pre><code>def LCM(n,d):
    while(n%(d+=1) != 0 ):
        continue
    return d-1
print(LCM(99,12))
</code></pre>

<p>To make sure it wasn't my thinking that was off, I tried the same thing in javascript:</p>

<pre><code>function LCM(b,d){
   while(b%d++ != 0){
   }
return d-1;
}
</code></pre>

<p>So does Python not allow expressions like in javascript? Also, is indentation the only way to define something? I know semicolons aren't required but can be used, is there anything like that in terms of closing a loop or function definition? </p>

<p>Finally, are <code>is</code> and <code>is not</code> the Python equality-without-type-coersion operator?</p>

<p>P.S. I realize the function isn't practical without checking the input for various things, but that wasn't the point in writing it.</p>

<p>P.P.S Also, is there a Python equivalent of the javascript <code>evaluation ? on true : on false</code> if statement abbreviation?</p>
