saving . . . saved Error has been deleted. Error has been hidden .
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 25-05-19, 3 p.m. paresh.rkcet@gmail.com

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.

25-05-19, 3:29 p.m. pratham920
OR
you can also use !type primes.txt
25-05-19, 3:53 p.m. pratham920
yes it works
01-05-20, 12:11 a.m. rupalicdange_978
!types primes.txt is not working

26-05-20, 3:56 p.m. sweacha.lakshmi@gmail.com

Login to add comment


thanks a lot for your reply and make it very interactive to learn during this workshop
25-05-19, 4:28 p.m. paresh.rkcet@gmail.com


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".
13-05-20, 4:17 p.m. chirag26oct
thank a lot
22-06-20, 11:21 a.m. VYOM_VITHANI
29-07-20, 6:52 a.m. chanduspokentutorial
I saved graphs in F:// and primes.txt also in F://. How to open in cmd?

24-11-20, 11:05 a.m. nehasoni24896@iisuniv.ac.in
<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>
03-12-20, 12:09 p.m. Aadrika
yes chirsg your solution worked for me thnx alot

25-03-21, 6:23 p.m. enoni
Thanks a lot, ur solution is correct.
10-04-22, 4:07 p.m. Sagar019

Login to add comment


Log-in to answer to this question.