```python
for x in xrange(num):
    ...
```