Creating lists using OCEAN

Discussion in 'Cadence' started by sarathcvk, Feb 21, 2007.

  1. sarathcvk

    sarathcvk 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, Feb 21, 2007
    #1
  2. linRg is the function you are looking for:

    test_list = linRg(100 500 1)

    -
    Suresh
     
    Suresh Jeevanandam, Feb 22, 2007
    #2
  3. sarathcvk

    sarathcvk Guest

    Thanks. It worked fine.
    --Sarath
     
    sarathcvk, Feb 22, 2007
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.