How to find only the files in a directory in Python?
A simple Python technique to find only the files in a directory. Here I have used pathlib and os.listdir to get the list of files.
A simple Python technique to find only the files in a directory. Here I have used pathlib and os.listdir to get the list of files.
Here is a simple Python technique to check if file exists before performing any operation on the file.
Here is a simple Python code to find the version it is running on. You can get the full version number or the various components like manor, minor,… versions separately.
Here are the simple steps for upgrading “Package installer for Python” abbreviated as PIP to it’s latest version compactable to Python 3.x.
In this article we will how to activate, install and use a popular linting tool PyLint on VS Code for linting python source code.
In this article we will see how to create a virtual environment and installing Python packages for Visual Studio Code on macOS.
Simple step by step illustration for setting up visual studio code for Python programming and debugging on macOS computer.
Here is the step by step instruction tp upgrade Python On maxOS to it’s latest version.
Follow the steps given here to check if Python is pre-installed on your macOS computer.
Here is a simple tip on how to drop a temporary or temp table if it exists using the DIY in 2016 or higher versions of SQL Server.
Here is a simple tip to reset identity seed of an auto incremented identity column after deleting records from the table in SQL Server.
Here is a simple tip to convert the datetime value to a specific formatted date like YYYY-MM-DD in SQL Server 2012 and higher.
Here is a simple method to generate a date from integer format of day, month and year in SQL Server.
Here we will compare the builtin SQL Server functions RAND() vs NEWID() and understand the major differences between them.
Here is a simple trick for generating unique random number for each row in select statement in SQL Server. Let’s see how it works.
Generating random numbers is very simple in SQL Server. We can use the built-in function RAND() to generate random number. Here are some examples.
There are several ways to get the the list of column names of a table on a specific SQL Server database. I will go through these methods.
There is a couple of straightforward ways to get day of year for a given date in SQL Server using DATENAME or DATEPART built-in function. Let’s see how to use them
Here is the simple technique to get only the date part of GetDate() in SQL Server.
Here are couple methods to find the number of weeks in a month including the partial weeks considering different start day of week.