播放线路
简介
```python # To print the first 10 even numbers using a for loop in Python for i in range(2, 21, 2): print(i) ``` This will output: ``` 2 4 6 8 10 12 14 16 18 20 ``` Note that we specify a range starting from 2 (the first even number) and incrementing by 2 each time, up to (but not including) 21 (the next even number after 20).