This change is unnecessary:
  "for i in range(x)" and "for i in list(range(x))" give you the same result.