Python -Create, write and read file -VS Code on Ubuntu No.35
How to create, write and read a file using Python in Visual Studio Code on Ubuntu is shown in this blog. Contents ▼1. Creating, write and read a file using Python▼2. Prerequisites▼3. Creating a JSON file and then reading it by Python3-1. Creating a JSON file3-2. Creating, writing and reading a JSON file using Python code3-3. Runnig writes.py▼4. Reference▼1. Creating, write and read a file using Python open() function is used to create a file or edit a file. there are 2 elementary parameters of open() Python function for specifying a file name and the mode of a file operation. There are some modes as below. Mode Description ‘r’ open … Continue reading “Python -Create, write and read file -VS Code on Ubuntu No.35”