Online Course Discussion Forum

hmwk 2 question 3

Picture of John Lensmire
Re: hmwk 2 question 3
by John Lensmire - Wednesday, November 25, 2020, 9:57 AM

It this for Algorithms? Or for a physics question? I'm not quite sure how it would relate to physics, but in Python, lists start their indices at 0. For example if mylist = [ 'a', 'b', 'c'], then mylist[0] = 'a' for the 'first' element in the list.