Asif Rahaman

Asif Rahaman

52 Articles Published

Articles by Asif Rahaman

Page 4 of 6

How to Get the First Element in List of Tuples in Python?

Asif Rahaman
Asif Rahaman
Updated on 18-Jul-2023 2K+ Views

Tuples are immutable data types in Python that can hold heterogeneous data types. List, on the other hand, are multiple data types that can hold heterogeneous data. In this article, we will explore various methods to retrieve the first element from a list of tuples using function−based components. We will explore several methods like loops, list comprehension, zip method, etc. Using Loop Method Loops are common statements in almost any Programming language. We can use the loop statement along with the indexing property of the iterable objects of Python to access the first elements of the iterable objects. ...

Read More

Get the List of Files in a Directory Sorted by Size Using Python.

Asif Rahaman
Asif Rahaman
Updated on 18-Jul-2023 722 Views

Directory contains special nodes in computer paths that hold information about other nested paths but do not contain any information. Since they contain files and other directories, they have some size. Sorting by size means ordering the directories in terms of the space occupied by the directories in the disks. In this article, we will explore several methods, like using the os module, glob module, etc. sorted, lambda functions, etc., to perform the same. Using the OS and Operator Modules The os module Python provides a way to interact with the operating System. It offers various functions for operating ...

Read More

Get Month from year and weekday using Python

Asif Rahaman
Asif Rahaman
Updated on 18-Jul-2023 875 Views

Dealing with time is one of the most important aspects of any day−to−day activity. In this article, we will discuss how to get month from year and weekday using Python. We will utilize Python's two most popular libraries, namely calendar, and datetime, to deal with the months, year, s, etc. Both libraries provide several in−built methods to deal with time. We do not need to exclusively care for challenging tasks like leap year if we deal with such libraries. Using The Calendar Library The calendar library in Python provides useful functions and classes working with the calendar and the ...

Read More

Get Confirmed, Recovered, Deaths cases of Corona around the globe using Python

Asif Rahaman
Asif Rahaman
Updated on 18-Jul-2023 126 Views

The covid pandemic has impacted billions of life all over the world. The pandemic led to widespread concern among the people. Several applications were built to determine and get accurate information about the total number of deaths, recovered cases, confirmed cases, etc. Fetching and analyzing this information is important for developers when they want to make applications around the pandemic. In this article, we will understand how to get the statistical data of the COVID−19 case. Using APIs APIs(Application Programming Interfaces) are important in modern programming and software development. This enables the software applications to interact with each other. ...

Read More

Get Hardware and System information using the Python Platform Module.

Asif Rahaman
Asif Rahaman
Updated on 18-Jul-2023 927 Views

Python is a versatile language that was built as a general−purpose scripting language. Hence a lot of automation tasks, along with scripting, can be done. Getting the system information becomes an important task in many applications such as machine learning, deep learning, etc., where hardware plays a crucial role. Python provides several methods to gather information about the operating system and hardware. Getting Overall System Configuration The platform module in Python provides a way to obtain the overall system configuration in a platform−independent manner. So we can run the same methods to get the system configuration without knowing about ...

Read More

Finding the Last business day of Every Month in a Year using Python

Asif Rahaman
Asif Rahaman
Updated on 18-Jul-2023 2K+ Views

Business days are known as working day in corporate sector, in some sector it is Monday to friday and in some they are Monday to Saturday. In this article we will understand how to find the last business day of every year using Python. Python offers various libraries like datetime, time, calendar etc to deal with the time operations. We will be utilizing those libraries to program the same. Additionally some libraries like Pandas also have in−built methods to support such time operations. Using The Datetime And Calender Module The 'datetime', and 'calendar' are standard Python modules to deal ...

Read More

How to call web services in HTML5?

Asif Rahaman
Asif Rahaman
Updated on 17-Apr-2023 2K+ Views

Introduction Calling web services is one of the most commonly used services over the web. It refers to the way of communicating with the software systems. This communication can be between the clients with the server, peer-to-peer, etc. HTML5, the latest version of HTML, provides A LOT OF WAYS LIKE XMLHttpRequest object, APIs like Axios and fetch, WebSockets, etc. This API allows the users to get dynamic static, real-time, or dynamic content depending upon the requirement. In this article, we shall learn how to call web services by using different methods like calling APIs, web sockets, etc. XMLHttpRequest is a ...

Read More

How to Design Digital Clock using JavaScript?

Asif Rahaman
Asif Rahaman
Updated on 17-Apr-2023 4K+ Views

Dealing with time is one of the most common concepts of web developers. Whether to schedule time for the subscription period or schedule email sending requires developers to deal with the time. In this article, we will learn how to design a digital clock using JavaScript. Get The Time On Clicking The Button We can achieve the same operation using multiple logic and codes. First, in this section, we shall learn how to design a digital clock that shows the time when the user clicks on the button. Follow the steps to achieve the step − First, create a ...

Read More

How to design combo grids using jQuery EasyUI?

Asif Rahaman
Asif Rahaman
Updated on 17-Apr-2023 497 Views

jQuery EasyUI is a powerful and user-friendly JavaScript library that can be used to create various UI components, including combo grids. Combo grids are a combination of drop-down lists and data grids, which allow users to select data from a list with a grid-like interface. In this article, we will go over the steps to design combo grids using jQuery EasyUI. Example Combo Grids with jQuery EasyUI #combo-grid ...

Read More

How to Design Color Picker using jQuery UI?

Asif Rahaman
Asif Rahaman
Updated on 17-Apr-2023 760 Views

A color picker is a graphical user interface component used to select colors. It is a valuable tool in web development and graphic design as it allows users to choose and customize colors for various design elements such as backgrounds, text, and borders. In this article, we will explore how to design a color picker using jQuery UI. Design A Color Picker Using jQuery UI jQuery allows us to create a color picker with the help of the libraries associated with it. To create a color picker we can follow the following steps − First import the jquery script ...

Read More
Showing 31–40 of 52 articles
Advertisements