Quickly create a list of sequential and non-sequential numbers in Python
In R, I can quickly create a list of sequential and non-sequential numbers like so: numbers <- c(1:5, 8, 12, 15:19) numbers [1] 1 2 3 4 5 8 12 15 16 17 18 19 Is there a similar method in Python? Everything I’ve seen seems to require a loop and/or multiple mechanisms to create… Read More Quickly create a list of sequential and non-sequential numbers in Python