python

How to check if a path is file or directory in Python

Python program to check if a path is a file or a directory. The python program will take one path and check if it is a file path or directory path.

Read
python

Python os.path.lexists() method explanation with example

Python os.path sub-module provides one method called lexists() that can be used to check if a path exists or not. This post will show you how to use lexists with example.

Read
python

Python program to check if a path exists

Python program to check if a path exists or not. Python os.path sub-module provides different methods for path manipulation. We will learn how to use this module with example.

Read
python

Python dictionary get() method explanation with example

Python dictionary get() method is used to get the value of a python dictionary using its key. We can pass the key to this method and it returns the value for that key.

Read
javascript

Different index related methods in JavaScript array

Learn different index related methods of JavaScript array. We can use these methods to get the values in an array at different index positions in JavaScript.

Read
dart

try-catch in dart explanation with example

Dart program to show you how to use try-catch blocks to handle exceptions. try-catch is used for exception handling and this post will show you how to use it with examples.

Read
c#

How to list all files in a folder in C#

C# program to list all files in a folder. This post will show you how to list all files, list all files with specific extension, list all files in a subfolder etc. with examples.

Read
c#

C# program to check if a string starts with a number or not

C# program to check if a string starts with a number or not. This C# program will get the first character of the string, checks it if it is a number and print out one message.

Read
c#

C# program to find the average of odd and even numbers in an array

C# program to find the average of odd and even numbers in an array. This program will show different ways to find the average.

Read
python

Python find the base name of a given path

Python os.path.basename() method explanation with example. basename is used to find the base name of the given pathname.

Read