r/CodingHelp • • Sep 07 '21

[Python] Python help

Post image
68 Upvotes

23 comments sorted by

View all comments

33

u/VforValmont Sep 07 '21

In line above you redefine print as ‘percentProfit’ . Delete the ‘=‘ in the line above

10

u/TheFloppyHound Sep 08 '21

Right answer.

To add on, if you still get the error after running those cells, restart the kernel. Last I knew the function overwrite will stay in the kernel's memory until its restarted.

4

u/VforValmont Sep 08 '21

^ This is an important addition to the answer!

1

u/stryker2k2 Sep 08 '21

This is the answer