[Home]History of Bubble sort/Talk

HomePage | Recent Changes | Preferences

Revision 3 . . December 14, 2001 5:01 pm by (logged).253.39.xxx [replied to comment]
Revision 2 . . December 14, 2001 8:40 am by AxelBoldt [Python question]
Revision 1 . . December 14, 2001 8:40 am by AxelBoldt [Python question]
  

Difference (from prior major revision) (no other diffs)

Changed: 1c1,3
Is the Python implementation correct? Does the variable i run from 1 to length or from length to 1? --AxelBoldt
Is the Python implementation correct? Does the variable i run from 1 to length or from length to 1? --AxelBoldt

Python range(n) gives a list [0, 1, 2, ... n-1]. The Python for statement then iterates over these values. Python arrays are indexed from 0 upwards. -- The Anome

HomePage | Recent Changes | Preferences
Search: