list comp loop through list certain amount of times

Solutions on MaxInterview for list comp loop through list certain amount of times by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "list comp loop through list certain amount of times"
Emily
10 Nov 2016
1data_subset = [car_data[i] for i in range(1000)]
2#List comp, that loops through a certain list (car_data)
3#in range of a 1000 times