Saved Bookmarks
| 1. |
Range (n) iterates through the numbers from to n_1 |
|
Answer» Answer: Range(N) is function which iterates from 0 to n-1 the right side value is always excluded .i.e when you use range(10) it will provide NUMBERS from 0 to 10 excluding 10. we can use this range function with one or more parameters eg: range(1,11) which provides numbers from 1 to 10 we can also use range(1,11,2) this function will provide numbers starting from 1 and skip a NUMBER and will give you the NEXT number i.e. it will provide 1 skipping 2 it will provide 3. Explanation: |
|