DIPL2020 Points Table – Season 13 – Dubai Let’s see how the points table stands now. Pos Team Pld Won Lost Tied N/R Net RR Pts 1 Mumbai Indians MI 12 8 4 0 0 1.186 16 2 Royal Challengers Bangalore RCB 12 7 5 0 0 0.048 14 3 […]
Dream 11 – IPL 13 2020 Points Table IPL13 is proving to be tougher than any other season. New teams are coming up at the top of the points table. It’s only the starting. Let’s see who finishes in the top 4 positions. Pos Team Pld Won Lost Tied N/R […]
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 directory & its sub-directories to get all the files list. Then each file in the list is added to the […]
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 executable file and save it in a folder. Write the exe file path in the code above given. Now you can run the executable […]
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 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.
Print Current User Account Name in Python 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 below code. import getpass username = getpass.getuser() print (username) This command directly gets the user name and returns […]
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 […]