Thread: Array Question
View Single Post
  #1  
Old 12-11-2012, 05:32 AM
new_horizon new_horizon is offline
Member
 
Join Date: Apr 2010
Posts: 43
Array Question

Hi All,

I am trying to create a program whereby an element is selected from an array and then a new array (minus the selected object is then created).

E.g.

Speed = [30,40,50,60]

target_speed = random.choice(Speed)

Speed = Speed-target_speed

Obviously the last line is incorrect - can anyone suggest how this can be done?

Thanks
Reply With Quote