I have 2 numbers x
and y
.
x
for example is 1.5, and y
is 1.5
I need to create a list of lists with 8 different values.
[[0.5,0.5],[0.5,1.5],[0.5,2.5],
[1.5,0.5],[1.5,1.5],[1.5,2.5],
[2.5,0.5],[2.5,1.5],[2.5,2.5]]
[1.5,1.5] #needs to be removed from the above list.
How can I do this in python 3 using different x and y values?
x
and y
will always be numbers between 1 and 10. But they will be 1.5 or 2.5 or 3.5 etc.