Error
Title
Question
In [6]: cat primes.txt
File "<ipython-input-6-b296f9e207f4>", line 1
cat primes.txt
^
SyntaxError: invalid syntax
Python-3.4.3 Loading-Data-From-Files 01-02 min 20-30 sec
Answers:
cat is a command used to display the content of the files in linux.
In windows cat command will not work.
Better would be simply open the file in some editor and view.
thanks a lot for your reply and make it very interactive to learn during this workshop
For Windows users
1- Download the code files from this tutorial video page
2- save the file primes.txt at default path for ipthon3 files(where the graph charts were saved in previous tutorials by default)
3- use command "!type primes.txt".
thank a lot
I saved graphs in F:// and primes.txt also in F://. How to open in cmd?
<span style="background-color: rgb(250, 250, 250);">Use any of %cat , %pycat or !type succeeded by location </span><span style="background-color: rgb(250, 250, 250);">of file .txt</span>
yes chirsg your solution worked for me thnx alot
Thanks a lot, ur solution is correct.
Login to add comment
Login to add comment