← Back to challenges

Power Calculator

PythonEasynumbersmath

Instructions

Create a function that takes voltage and current and returns the calculated power.

Examples

circuit_power(230, 10) ➞ 2300

circuit_power(110, 3) ➞ 330

circuit_power(480, 20) ➞ 9600

Notes

Requires basic calculation of electrical circuits (see Resources for info).

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Sum of Polygon Angles