in operator with multiple range python 1

in operator with multiple range python

range(101,6284) + [8001,8003,8010] + range(10000,12322)

Here is what the above code is Doing:
1. It’s creating a list of all the numbers from 101 to 6283.
2. It’s adding the numbers 8001, 8003, and 8010 to the list.
3. It’s adding all the numbers from 10000 to 12321 to the list.

Similar Posts