The way to parse this in mathematical English is:
Write code that creates
a list of
all integers
from
50 to the power of 300
where each line is parsed distinctly.
Write code that creates
a list of
X
from
Y
means treat Y
as a description of a set or collection of elements, and they want you to create a list of elements that qualify as X
from that set or collection, and make a list of them.
The problem is that "50 to the power of 300" is itself an integer. And an integer is not a collection of integers.
You can attempt to read "50 to the power of 300" as a collection of integers; if it was "A to B" where both A and B where numbers, that would have a clear meaning (well, somewhat clear; if it includes the endpoints would be ambiguous). But while "50" describes a number, "the power of 300" does not.
You could invent a base (like 10), but that is stretching it.
So we treat "50 to the power of 300" as a single number.
So now we have:
Write code that creates
a list of
all integers
from
some number
the teacher probably means digits. If the teacher was being a silly set theoretical mathematician, one construction of the natural numbers is that each natural number is the set of all of its predecessors; so zero is the empty set, 1 is the set containing 0, 2 is the set containing 1 and 0, etc. But I'd bet a fair amount of money that your teacher does not mean this, unless you are taking an introductory course in formal mathematics foundations of some kind.
So make a list of the digits.
Note that in some dialects of non-mathematical English, "all of the X from Y" can mean "starting at Y and going on, all of the X". This is not something you would ever mean in the mathematical sub-dialect of English.