Nov-24-2022, 09:30 AM
Also, note that
so a line like this
Check also What is the purpose of the return statement? How is it different from printing?
print()
returns None
so a line like this
dollars = print(float(d.lstrip("$")))will assign
None
to name dollars
and even if you return dollars
you still have a problem.Check also What is the purpose of the return statement? How is it different from printing?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs