Problem
Write a program to rebalance a stock portfolio to match a target wallet allocation (for example 25% Asset X, 25% Asset Y, 50% Asset Z).
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

