python geometric sequence
<p>I'm trying to do a problem in my book but I have no idea how.  The question is, Write function geometric() that takes a list of integers as input and returns True if the integers in the list form a geometric sequence. A sequence a0,a1,a2,a3,a4,...,an-2,an-1 is a geometric sequence if the ratios a1/a0,a2/a1,a3/a2,a4/a3,...,an-1/an-2 are all equal.</p>

<pre><code>def geometric(l):
for i in l:
    if i*1==i*0:
        return True
else:
    return False
</code></pre>

<p>I honestly have no idea how to start this and I'm completely drawing a blank. Any help would be appreciated.</p>

<p>Thanks!</p>

<p>For example:</p>

<p><code>geometric([2,4,8,16,32,64,128,256])</code>
True</p>

<p><code>geometric([2,4,6,8])</code>
False</p>
