I want to create an array of numbers from 1 to n
without the number x
,
is there a "prettier" way to do it instead of [i for i in range(n) if i != x]
?thanks!
I want to create an array of numbers from 1 to n
without the number x
,
is there a "prettier" way to do it instead of [i for i in range(n) if i != x]
?thanks!