In ex49, we are told to call the the lexicon.py file created in ex48 with the following command.
When I try to import the lexicon file with the following command
>>> from ex48 import lexicon
it returns the following:
from: can't read /var/mail/ex48
I've tried looking this up. What does this mean? Is a file in the wrong place?
You need to add the shebang to the first line of your program. Put in #!/usr/bin/python
or where ever your python bin is located and your program will run.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With