Error
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.
OR
25-05-19, 3:53 p.m.
pratham920
you can also use !type primes.txt
yes it works
01-05-20, 12:11 a.m.
rupalicdange_978
!types primes.txt is not working
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?
Use any of %cat , %pycat or !type succeeded by location of file .txt
yes chirsg your solution worked for me thnx alot
Thanks a lot, ur solution is correct.