saving . . . saved Using cat command for diplayin prime numbers in python 3.6.8 has been deleted. Using cat command for diplayin prime numbers in python 3.6.8 has been hidden .
Using cat command for diplayin prime numbers in python 3.6.8
Title
Question
cat primes.txt is showing invalid syntax

C:\\Users\\Sadia Patka>ipython
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: %pylab
Using matplotlib backend: TkAgg
Populating the interactive namespace from numpy and matplotlib

In [2]: cat primes.txt
File "<ipython-input-2-b296f9e207f4>", line 1
cat primes.txt
^
SyntaxError: invalid syntax



Python loading-data-from-files 01-02 min 10-20 sec 25-05-19, 4:42 p.m. SadiaPatka

Answers:

you can also use !type primes.txt
25-05-19, 4:44 p.m. ankitrj.iitb
yes, !type with file name is working well

27-05-19, 12:01 p.m. geetachhikara

Login to add comment


Log-in to answer to this question.