Web, Mobile, Embedded & IoT. Open- Source Fanatic. Big Data & Machine Learning Enthusiast. Dad. Atheist So primarily a Developer + little bit of this & that Jack of all trades & Master of none No, I do not keep Bindi for religious reasons. Its for a scienti c reason & a fashion statement. http://dhilipsiva.com [email protected]
not a graduate) Startup Fanatic (& hate corporate) Full Stack & DevOps landscape Getting Started on ML I love Python. A lot. Take my words with a pinch of salt
fr.read() # Will read entire content fr.readline() # Reads line by line fr.readlines() # Reads the entire files and return a list fr.close() # Close the file fw = open("file.txt", "w") # Open a file to write fw.write("Foo Bar") # Write a single line fw.writelines(["One", "Two"]) # Write a list of lines fw.close() # Close the file # Also explain append mode