One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
One last thing. AI wrote a function discount that's supposed to take a price
and a percent off, and hand back the new price. The function body is missing
the line that does the math and returns the answer.
Finish the function so the script prints final: 80.0.
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
One last thing. AI wrote a function discount that's supposed to take a price
and a percent off, and hand back the new price. The function body is missing
the line that does the math and returns the answer.
Finish the function so the script prints final: 80.0.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.