Thread: Array Question
View Single Post
Old 12-11-2012, 05:32 AM
new_horizon new_horizon is offline
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).


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?

Reply With Quote