For a better user experience, at some times we may often need to display the day of the week to the user along with the date. In this article, we will see how to find the day of the week…
In this article, we will see how to create a dynamic dropdown list where the data is populated dynamically with the data received from the server. Install the dependencies: Let’s get started by installing the following dependencies i.e. react-bootstrap. Define…
In this article, we will see how to use react datepicker with formik for date selection and form submission. Before you begin, click on the following links to get a high-level understanding of the react datepicker and formik visit the…
Beautiful Soup is a Python library which provides a way to parse HTML and XML documents. In this article, we will see how to parse the image tag and get the src attribute using Beautiful Soup. Install the library If…
Beautiful Soup is a Python library which provides a way to parse HTML and XML documents. In this article, we will see how to parse the script tag using Beautiful Soup. Install the library If you don’t have the beautiful…
In this article, we will see different techniques and libraries to select items from a list randomly. Random module The random the module provides several APIs for doing the random selection. To select the items from a list at random,…
Usually, the ImportError such as No module named comes when the python is unable to find the required modules. In this article, we will see how to resolve the import error which comes during the import of dateutil module. In…
In this article, we will see how to trim the string before a specific character. We will see some of the best approaches we can use to return the substring before the specific character. We can achieve this efficiently by…
In Django web development, we often need to display numbers in a formatted manner for a better user experience. Django provides several built-in template filters using which we can format currency, percentages or decimal numbers. Using Django templates’ built-in filters,…
Using modules, we can modularize the larger codebase into smaller parts which promotes code reusability, and maintainability. While Python provides a rich set of built-in modules, we often need to create our own custom modules to hide some specific functionalities….