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
Answers:
you can also use !type primes.txt
Login to add comment