JnBrymn
  • Member for 7 years, 4 months
  • Last seen more than a month ago
Python code for detecting a single item moved in a list
3 votes

Here's my take. Nothing fancy. a=[10,11,12,13,14,15,16,17,18,19] b=[10,11,12,13,15,14,16,17,18,19] ##### def first_different_at(a,b): for i in range(min(len(a),len(b))): if a[i] != b[i]: ...

View answer