Python List Ranges

  • Steve Jones - SSC Editor

    SSC Guru

    Points: 715855

    Comments posted to this topic are about the item Python List Ranges

  • Stewart "Arturius" Campbell

    SSC Guru

    Points: 71401

    Nice question, thanks Steve

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • peter.row

    SSCarpal Tunnel

    Points: 4296

    Urgh! So if you want all elements then using this syntax you'd have to specify an out of bounds index? That is so ugly!

  • SW Skeen

    SSC-Addicted

    Points: 489

    Dissin' the Raider Nation...just not right!

  • gary.rumble

    SSCommitted

    Points: 1710

    peter.row - Wednesday, September 5, 2018 2:54 AM

    Urgh! So if you want all elements then using this syntax you'd have to specify an out of bounds index? That is so ugly!

    Nope.  Team[0:] .  Leaving off the second value says give me everything.

  • peter.row

    SSCarpal Tunnel

    Points: 4296

    gary.rumble - Wednesday, September 5, 2018 4:12 PM

    Nope.  Team[0:] .  Leaving off the second value says give me everything.

    Ah okay, that's not as bad then.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply