Open Text File - Read Write File Operations - VBA, Python, VBS, C, C++, DOS
File Operations - VBA, Python, VBS, C, C++ & DOS It is important for any programming language to open text file or get data from external file or write to a ext...
Showing all 23 articles in this category.
File Operations - VBA, Python, VBS, C, C++ & DOS It is important for any programming language to open text file or get data from external file or write to a ext...
JSON To CSV - Python Json Tutorial Use this code to parse Json to csv or Excel. Actually, this code write to a csv file, which can be opened in a Excel file as ...
strftime For quick syntax & options help with this function, type >>help ("time.strftime") . This will list all the basic help that you are in need. If you are ...
Csv File Open Looking for simplest Python CSV codes? We have here - code for both Python Csv read & write, using the CSV api. The code uses the commands in the ...
This tutorial tells how to install Tensorflow in the prebuilt configuration in both Windows 10 and Ubuntu 16.04(for both CPU & GPU) Currently, 64-bit Python onl...
Python Code To Reverse A String Problem Statement: How to reverse a string in Python? How Does it Work? Following code will reverse the string using external Sl...
How to scrape Website using Python BeautifulSoup? Applicable To: Python 2.7, 3 or above Data scraping is a method to get data from the websites for business pur...
Python Program to read a book (docx Word document) & store it in a DataFrame in Python. Problem Statement: Following code will read a book from the system in a ...
Python Code To Generate Random Number Problem Statement Random number is a series of numbers with unpredictable sequence. Following code will generate random nu...
Python Code to List all Files from Desired Folder To get list of files present in a computer folder to a string variable, use the code below. Edit the folder pa...
Print Current User Account Name in Python Here is the simple way to get the user name by using python code. Note: It is adviced not to use this function for any...
import os os.system('shutdown -s') This coding for shutdown the computer eventually. After running this code, a message saying "You are about to be signed out i...
import sys, string, os os.popen(r"path") To run the outside executable file in your computer through Python, this is the easiest way. You need to download an ex...
Archive or Zip all files in Directory The code in this page will Zip directory full of files. It will first get folder path as input. Then loop thru the directo...
Step by Step to Install Python Download Install file for latest Python or the version that suits your application from this link. Python Install file can be dow...
How to get list of installed Packages? You can use this simple command from the cmd prompt. There are two command available to list all the installed packages. ...
Print Directory List in Python To get list of sub-directories present in a computer folder, use the code below. Edit the folder path mentioned in the variable “...
Sort Function in Python Code In Python, You can sort a list or array of numbers & strings using the built in function. The code below creates a numeric & string...
Python - Weather Report for any City There is a similar article to this in which the weather report is obtained using Excel Vba code . To use this open weatherm...
Extract Files from Zip Archive to Folder - Unzip in Python This Python code will extract or unzip all the files in a Zip file. All files in the zipped archive w...
How to check if a file exists in path using Python? There are 2 functions available in Python to check this directly using os.path. Try the below Python code sn...
A regular expression (shortened as regex ) is an extremely useful way of matching common patterns and texts such as emails, phone numbers, URLs etc. almost all ...
How to convert Python program to Exe file? Though there are different options to convert Python to Exe file, I prefer PyInstaller. It converts Python program to...