To get the list of subdirectories under the given path, we need to interact with the OS filesystem. Python made it easy by providing the “os” module. It provides the functionality to interact with the operating systems. Just import the…
Programming
In this article, we will see how to split a list into multiple sub-lists. Python lists are non-homogeneous and used to store multiple values of different data types which can be either numeric, Boolean, characters, etc under the same name….
In this article, we will see how to remove a white space character from a string and convert the string to upper case. By using the split() method we divide the entire string into multiple substrings with whitespace as a…
Python has a module called datetime which has several classes for manipulating date and time. By using the “timedelta” in datetime module we can easily get the previous month’s date. Following is the example
Dictionary in python is a collection of key-value pairs. It is the same as an array instead the value here will be accessed by using the keys mapped. Whereas in arrays we use indexes. Values in the dictionary can be…
To check whether the file or folder exists, we need to interact with the OS filesystem. Python made it easy by providing the “os” module. It provides the functionality to interact with the operating systems. Just import “os.path” module and…
Many times I have faced the same issue i.e. lost the mouse control when performing the drag and drop in the virtual box. I am not sure what happened internally but with the below procedure, I got the mouse control…
Please have a look at the following articles i.e. polymorphism and inheritance in C++ which is really important to know before going through the virtual functions. As we know, through inheritance one class (derived class) can inherit the features of…
Like normal input fields, values from the hidden input field can be accessed using the element.val(). Following is an example of how to do that. val() function fetches the html value from the specific object and in this case it…
This can be done by using getElementsByTagName() or querySelectorAll(). Old browsers don’t support the querySelectorAll() so in such a case you have to use the other one and then manually write a for loop to iterate over each node and…