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
|