Online Course Discussion Forum

hmwk 2 question 3

 
 
Picture of Erik Tang
hmwk 2 question 3
by Erik Tang - Monday, 23 November 2020, 10:53 AM
 

What's the 0 position?

 
Picture of John Lensmire
Re: hmwk 2 question 3
by John Lensmire - Wednesday, 25 November 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.