cat command
windows cann't recognize cat command in python console
Python-3.4.3 Loading-Data-From-Files 01-02 min 10-20 sec
Answers:
Please keep the file in the current working directory and try the !type <filename> command. To check the current working directory from python type %pwd
got answer
22-11-21, 3:01 p.m.
anshu99
file path was too long
i have reduced it
and got command executed
In [47]: %pycat E:\primes.txt
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
In [48]: primes = loadtxt("E:\primes.txt")
In [49]: print(primes)
[ 2. 3. 5. 7. 11. 13. 17. 19. 23. 29. 31. 37. 41. 43. 47. 53. 59. 61.
67. 71. 73. 79. 83. 89. 97.]