We provide you with a number N
.
Create a list then, using a loop, populate the list with N
elements. Set each list element to the index multiplied by 10.
The easiest way would probably be to change len(numbers)
to equal the value of N, but I know I can't do it through brute force, i.e.: len(numbers) = N
.
Here is what I have tried.
import sys
N= int(sys.argv[1])
numbers = [1, 2, 3, 4, 5]