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

Login to add comment


Log-in to answer to this question.