Creation and use of ranges in Python

Creation and use of ranges in Python

This program lists a range of numbers given by the user, then allows you to see the series of said range that goes up by an integer also introduced by the user (again, not inclusive).

So, you can tell the program that you want to see the range from 2 to 10. And you can also specify that you want to see the list of numbers but instead of going up one by one, you could command it to show you the range but every 2 numbers, for example, instead of printing “2, 3, 4, 5, …”, it will print “2, 4, 6, 8, …”.

Creation and use of ranges in Python

CC BY 4.0 Creation and use of ranges in Python by tywins is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.