Online Course Discussion Forum

hmwk 2 question 3

 
 
TangErik的头像
hmwk 2 question 3
TangErik - 2020年11月23日 Monday 10:53
 

What's the 0 position?

 
LensmireJohn的头像
Re: hmwk 2 question 3
LensmireJohn - 2020年11月25日 Wednesday 09:57
 

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.