Challenge: Batch Molar Calculations
Task
Swipe to start coding
Given a NumPy array containing the masses of several samples and a common molar mass, compute the number of moles for each sample.
- Divide each value in the
massesarray by themolar_massto obtain the corresponding number of moles. - Return a NumPy array of moles with the same shape as
masses.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 5.26
Challenge: Batch Molar Calculations
Swipe to show menu
Task
Swipe to start coding
Given a NumPy array containing the masses of several samples and a common molar mass, compute the number of moles for each sample.
- Divide each value in the
massesarray by themolar_massto obtain the corresponding number of moles. - Return a NumPy array of moles with the same shape as
masses.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 4
single