Nov-30-2018, 12:33 AM
(Nov-30-2018, 12:28 AM)metulburr Wrote:(Nov-30-2018, 12:25 AM)nadiyaz Wrote:You need to open the file to read it
Error:File "<ipython-input-3-2217261c2031>", line 1, in <module> countWords(mobypara.txt) NameError: name 'mobypara' is not defined
https://python-forum.io/Thread-Files
i opened it in line 3 (inf = open(filename, 'r')), do i need to open it before the function to?