I'm very new to python so i would appreciate any help I can get. How can I rearrange A to look like B?
A=([3,5,6,9,0,0,0,0,0])
B=([0,0,3,0,5,6,0,0,9])
Specifically, I want to rearrange A using the the entries as an index. So I want the 3rd, 5th, 6th, and 9th elements of B to be the value of that index.