[Tutor] Question about a python finction
Mark Lawrence
breamoreboy at gmail.com
Fri May 11 18:56:29 EDT 2018
On 09/05/18 13:14, kevin hulshof wrote:
> Hello,
>
> Is there a function that allows you to grab the numbers between two numbers?
>
> Eg. If you input the numbers 1 and 4
> To make a list like this [1,2,3,4]
>
> Thank you for you’re time
>
Seems like 'range' should fit your needs
https://docs.python.org/3/library/stdtypes.html#typesseq
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Tutor
mailing list