![range in Python](https://img.php.cn/upload/article/000/000/000/173551623220270.jpg)
Buy Me a Coffee☕
*Memos:
-
My post explains zip().
-
My post explains enumerate().
range() can create a sequence of numbers as shown below:
*Memos:
- The 1st argument is start(Optional-Default:0-Type:int).
- The 2nd argument is stop(Required-Type:int).
- The 3rd argument is step(Optional-Default:1-Type:int).
-
start=, stop= and step= cannot be used.
The above is the detailed content of range in Python. For more information, please follow other related articles on the PHP Chinese website!