0 / 34
Scenario

Investment Portfolio Returns

๐Ÿ“‹ Context

You manage a portfolio of 4 stocks over 6 months. You need to calculate returns, find the best performer, and assess risk using standard deviation.

1
2
3

Step 1: Create Price Data

๐ŸŽฏ Task

Create prices โ€” a (6, 4) array representing 6 months of closing prices for 4 stocks:
[[100,50,200,75],[105,48,210,80],[102,52,205,78],[110,55,220,85],[108,53,215,82],[115,58,230,90]]
Print it.

np.array([[100,50,200,75], ...])
Related lessons: Lesson 1, Lesson 8, Lesson 9, Lesson 18
exercise.py
โŒ˜โŽ run ยท โŒ˜โ† โ†’ nav
โ–ถ Output
Run your code to see output here.