Python List comprehension one declaration and 2 Comprehensions
<p>How can I combine this:</p>

<pre><code>ipaddresses =  [ipadr['ip'] for ipadr in hosts]
for ipadr in ipaddresses:
    ips = '.'.join(str(i) for i in ipadr)
</code></pre>

<p>Into One declaration with 2 list comprehensions? I just don't get it. Thanks</p>

<p>ipaddresses will print something like this:</p>

<blockquote>
  <p>[[10, 10, 10, 10], [10, 20, 20, 20]]</p>
</blockquote>
