# Create a periodic vector/array

What is the quickest way to create an array of length 999 such as the following:

```
[0, 2, 7, 0, 2, 7, 0, 2, 7, ...]
```

?

Create a periodic vector/array

What is the quickest way to create an array of length 999 such as the following:

```
[0, 2, 7, 0, 2, 7, 0, 2, 7, ...]
```

?

add a comment

1

Asked: **
2015-11-11 11:51:31 -0600
**

Seen: **45 times**

Last updated: **Nov 11 '15**

array numpy mixed division problem

Creating an array of variables

Can I define a function from a list of values?

Numpy array or list of random signs

Using the solution of a linear system, and splitting a matrix

refresh numpy array in a for-cycle

Is there a command to find the place of an element in an array?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.