Step by Step to Install Python Download Install file for latest Python or the version that suits your application from this link. Python Download Link Python Install file can be downloaded from here. Download and click on the install file. Choose a folder to install the Python files. Click check… [Continue Reading]
Here is one of the method in Python to compress the directory. Codes follow, In the above code, we can mention the file name. (Here, ex.Ziptest.zip) Write directory path which we want to compress Zip file will be stored in the current directory
To run the outside executable file in your computer through Python, this is the easiest way. You need to download an executable file and save it in a folder. Write the exe file path in the code above given. Now you can run the executable program easier than any other… [Continue Reading]
This coding for shutdown the computer eventually. After running this code, a message saying “You are about to be signed out in less than a minute” We can avoid that message – os.system(‘shutdown -s -t 0’) instead of using os.system(‘shutdown -s’) will immediately get shut down.
getpass.getuser Here is the simple way to get the user name by using python code. You can get your username without making any changes in the above code.
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 path mentioned in the variable “folder_path”. Then execute this ready to use code. It will print the file name one… [Continue Reading]
Python code to Generate Random number of unpredictable sequence within a set of predefined range. This simple code can generate random number within a range
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 document form and store it in a dataframe in Python. Solution: Step 1: Convert a pdf book into .docx format…. [Continue Reading]
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 purposes, analyzing and countless purposes used by businessmen and programmers. Python provides best of tools and libraries for carrying out data scraping work…. [Continue Reading]
Use this Python code snippet to Reverse string from a Python Variable. The code is just a one liner & wjust works fine for reversing string.
- Block Apps in FaceBook print screen Excel Countif Record Macro Timer in Excel Task Manager VCF HTML Table Import Data Thumbnails Text to Speech TTS Candy Crush C++ Programing Machine learning AI bulk email Excel VBA vba color index vba color codes Android social media Twitter Google+ Google Adsense Tips bitcoin Calendar in Excel outlook vba mass email Data Mining Excel Macro Facebook WhatsApp Wordpress python