# L-10.5 MCS 260 Wed 9 Jul 2014 : q12.py
"""
Give Python code to create a list of the first 20 natural numbers,
raised to the power 3.
Do it once with for and once without using any for or while loops,
but do it with list comprehensions.
"""
L = []
for k in range(20):
    L.append(k**3)
print L
L = [k**3 for k in range(20)]
print L
