https://drive.google.com/file/d/1sTLkJi0BXEUryfpTLCIGevToJVfcIJDj/view?usp=drivesdk
what is the main difference between open and loadtxt function in python.when to use load function and when to use open function in python.
Why do we need to initiate %pylab even if we are not working on mathematical problems(graphs, plots, chats, etc.). Like, in Strings, files and other tutorials also, why do we need to initialize pylab package?
Hello!! I am using windows 10 with ipython 3.6.8 and i am facing a problem in which the command prompt is saying '[Errno 2] No such file or directory: pedulum.txt '. Even though i have downloaded and extracted it in the same folder as the python folder . I have even checked the path again and again and even uninstalled and re-installed python but it returns with the same error as before. Can you please help me to solve this problem because it is causing a delay in my learning. Thank You!!!
24108 visits
Outline:Open a file Open() function Different Modes of opening a file Read() method Read the content of the file line by line Read the entire content of the file Append the lines of a file to a list Close a file Demonstration using a txt file Splitlines() method
Open a file Open() function Different Modes of opening a file Read() method Read the content of the file line by line Read the entire content of the file Append the lines of a file to a list Close a file Demonstration using a txt file Splitlines() method
Show video info
Pre-requisite