saving . . . saved Problem with cat and loadtxt commands has been deleted. Problem with cat and loadtxt commands has been hidden .
Problem with cat and loadtxt commands
Title
Question
  I had downloded all the files of the above course and had extracted both pendulum and data file.But when I type cat command the interpretere shows syntax error.Where should i save the extracted zip files?

Python-3.4.3 Loading-Data-From-Files 01-02 min 10-20 sec 21-05-20, 11:37 a.m. mary elizabeth antony

Answers:

You can save the files anywhere, but to follow the tutorial as it is, Save in the current working directory i.e. the directory from where you invoke ipython.

Also, what Syntax Error you got?
If you can tell the error, we will be in a better position to help you.  
21-05-20, 12:53 p.m. pratham920



 year,profit=loadtxt('/C/Users/tijo jose/company-a-data.tx
    ...: t',unpack=True).This was the command i wrote and the reply was this:

OSError: /C/Users/tijo jose/company-a-data.txt not found.



22-05-20, 3:33 p.m. mary elizabeth antony
Please keep the file in the current working directory and try the command again.
25-10-21, 7:14 p.m. aditya94palaparthy@gmail.com

Login to add comment


Log-in to answer to this question.