The workshop has 20 energy stored. You can preview a different amount inside a function without changing that stored value.
There are two assignments named energy in main.py. The indented one belongs to preview_pulse(): it's a local variable. The assignment outside the function is separate, even though it uses the same name.
Run the starter. Both values happen to be 20, so the difference isn't visible yet.
energy assignment inside preview_pulse() to 15.Leave the outer assignment at 20. Run again and compare the lines: the function returns 15, but the stored value is still 20. Submit to check that only the local value changed.
Edit the indented energy assignment only.