Use of text(.txt) file
Title
Question
my question is between sequesnce 1.12 to1.22 seconds. i downloaded the zip file of the code which contains primes.txt, pendulum.txt and saved it. after that when I use "cat" comd to extract the prime numbers or pendulum details from the list it is giving a syntax error and I cannot proceed further wrt loading of the prime numbers etc as being taught.
how did you use the text file so that when i use cat comd the numbers get displayed on the console. i feel it cannot read the file.
thanks
Python-3.4.3 Loading-Data-From-Files 01-02 min 0-10 sec
Answers:
Download all the files present below the video. Extract the files if it is a zip file
Copy all the downloaded files into the current working directory.
To check the current working directory type %pwd inside the ipython terminal.
I also have the same problem.Were u able to solve it?
I think cat command dosen't work in windows.
i searched and found that the command "!type" works for windows.
use !type primes.txt
Login to add comment
Login to add comment