Creating lists using OCEAN

  • Thread starter sarathcvk@gmail.com
  • Start date
S

sarathcvk@gmail.com

Guest
Hi,

Is there any way to generate a list from, say 100 to 500 in steps of 1
instead of declaring the same as
test_list=list(100 101 102 103 104....498 499 500)?
Thanks.
--Sarath
 
sarathcvk@gmail.com wrote:
Hi,

Is there any way to generate a list from, say 100 to 500 in steps of 1
instead of declaring the same as
test_list=list(100 101 102 103 104....498 499 500)?
Thanks.
--Sarath
linRg is the function you are looking for:

test_list = linRg(100 500 1)

-
Suresh
 
On Feb 21, 9:03 pm, Suresh Jeevanandam <sure...@DELETETHISti.com>
wrote:
sarath...@gmail.com wrote:
Hi,

Is there any way to generate a list from, say 100 to 500 in steps of 1
instead of declaring the same as
test_list=list(100 101 102 103 104....498 499 500)?
Thanks.
--Sarath

linRg is the function you are looking for:

test_list = linRg(100 500 1)

-
Suresh
Thanks. It worked fine.
--Sarath
 

Welcome to EDABoard.com

Sponsor

Back
Top