saving . . . saved ERROR has been deleted. ERROR has been hidden .
ERROR
Title
Question
<font face="Arial, Helvetica, sans-serif" size="2">cat primes.txt</font>
<font face="Arial, Helvetica, sans-serif" size="2">
</font>
<span class="ansi-cyan-intense-fg ansi-bold" style="color: rgb(37, 143, 143); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;">File </span><span class="ansi-green-intense-fg ansi-bold" style="color: rgb(0, 116, 39); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;">"<ipython-input-75-b296f9e207f4>"</span><span class="ansi-cyan-intense-fg ansi-bold" style="color: rgb(37, 143, 143); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;">, line </span><span class="ansi-green-intense-fg ansi-bold" style="color: rgb(0, 116, 39); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;">1</span><span style="color: black; font-family: monospace; font-size: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;"> </span><span class="ansi-yellow-intense-fg ansi-bold" style="color: rgb(178, 125, 18); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;"> cat primes.txt</span><span style="color: black; font-family: monospace; font-size: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;"> </span><span class="ansi-white-intense-fg ansi-bold" style="color: rgb(161, 166, 178); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;"> ^</span><span style="color: black; font-family: monospace; font-size: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;"> </span><span class="ansi-red-intense-fg ansi-bold" style="color: rgb(178, 43, 49); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;">SyntaxError</span><span class="ansi-red-intense-fg ansi-bold" style="color: rgb(178, 43, 49); font-family: monospace; font-size: 14px; font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: bold; white-space: pre-wrap;">:</span><span style="color: black; font-family: monospace; font-size: inherit; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;"> invalid syntax I am using jupyter notebook why am i getting this error</span>

Python-3.4.3 Loading-Data-From-Files 02-03 min 0-10 sec 14-03-20, 9:02 a.m. mohammedmehataab786@gmail.com

Answers:

In case you are using the cat command in the IPython console, please make sure you are using the magic command %cat instead of only using the command cat

Also make sure that the file is located in the current directory to which your IPython console is pointing to.

If you are on Windows: you can use !type <file-path>/<filename>.txt Example: !type C:/Documents/myfile.txt
18-04-20, 7:47 p.m. ankitrj.iitb


Log-in to answer to this question.