Articles on Trending Technologies

Technical articles with clear explanations and examples

Python program to find N largest elements from a list

AmitDiwan
AmitDiwan
Updated on 11-Aug-2022 2K+ Views

In this example, we will see how to find the N largest elements from a List. The list is the most versatile datatype available in Python, which can be written as a list of comma-separated values (items) between square brackets. Important thing about a list is that the items in a list need not be of the same type Let’s say the following is the input list − [25, 18, 29, 87, 45, 67, 98, 5, 59] The following is the output displaying the N largest element from the list. Here, N = 3 − [98, 87, 67] ...

Read More

How to check if a string is a valid keyword in Python?

AmitDiwan
AmitDiwan
Updated on 11-Aug-2022 2K+ Views

To check if a string is a valid keyword, import the keyword module and use the iskeyword() method. With that, you can directly display all the keywords at once and verify. Let’s say the following is our input − else The following is the output. The “else” is a keyword in Python − Keyword Check if a string is a valid keyword in Python Example import keyword # Create a List myList = ["for", "amit", "val", "while"] # Display the List print("List = ", myList) keyword_list = [] non_keyword_list = [] # Looping and ...

Read More

Binary to decimal and vice-versa in Python

AmitDiwan
AmitDiwan
Updated on 11-Aug-2022 1K+ Views

In this article, we will see how to convert Binary to Decimal and Decimal to Binary. Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other professionals. Decimal number system has base 10 as it uses 10 digits from 0 to 9. In decimal number system, the successive positions to the left of the decimal point represent units, tens, hundreds, ...

Read More

Python program to convert time from 12 hour to 24 hour format

AmitDiwan
AmitDiwan
Updated on 11-Aug-2022 6K+ Views

In this article, we will learn how to convert time from 12 to 24 hours format. Let’s say we have the following input date in 12-hour format − 10:25:30 PM The following is the output in 24-hour format − 22:25:30 Convert current time from 12 hour to 24 hour format To convert time from 12 hour to 24 hour format, here’s the code − Example import datetime def timeconvert(str1): if str1[-2:] == "AM" and str1[:2] == "12": return "00" + str1[2:-2] elif str1[-2:] == "AM": return str1[:-2] elif str1[-2:] == "PM" and str1[:2] == "12": return str1[:-2] ...

Read More

Difference between Spoofing and Phishing

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 11-Aug-2022 8K+ Views

Spoofing is an identity theft where a person tries to use the identity of a legitimate user. Phishing, on the other hand, is a phenomenon where an attacker employs social engineering methods to steal sensitive and confidential information from a user. Spoofing and phishing are both forms of cyber-attacks aimed at tricking you into disclosing your personal information. Both methods will be used by a criminal to gain your user names, passwords, and maybe more. Despite the fact that their final aim is the same, their techniques are not. Read through this article to find out more ...

Read More

Python program using map function to find row with maximum number of 1's

AmitDiwan
AmitDiwan
Updated on 11-Aug-2022 405 Views

In this article, we will learn how to use map function to find row with maximum number of 1's. 2D array is given and the elements of the arrays are 0 and 1. All rows are sorted. We have to find row with maximum number of 1's. Here we use map (). The map function is the simplest one among Python built-ins used for functional programming. These tools apply functions to sequences and other iterables. Let’s say the input is the following array − [[0, 1, 1, 1, 1], [0, 0, 1, 1, 1], [1, 1, 1, 1, 1], [0, ...

Read More

Python program to count occurrences of an element in a tuple

AmitDiwan
AmitDiwan
Updated on 11-Aug-2022 2K+ Views

We will see how to count occurrences of an element in a Tuple. A tuple is a sequence of immutable Python objects. Let’s say we have the following input, with the occurrences of 20 to be checked − myTuple = (10, 20, 30, 40, 20, 20, 70, 80) The output should be − Number of Occurrences of 20 = 3 Count occurrence of an element in a Tuple using for loop In this example, we will count the occurrences of an element in a Tuple − Example def countFunc(myTuple, a): count = 0 for ele in myTuple: ...

Read More

Difference between Static Routing and Dynamic Routing

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 11-Aug-2022 11K+ Views

Static Routing or Non-Adaptive Routing follows user-defined routing. Here, the routing table is not changed until the network administrator changes it. Static Routing uses simple routing algorithms and provides more security than dynamic routing. Dynamic Routing or Adaptive Routing, as the name suggests, changes the routing table if there is any change in the network topology. During network change, dynamic routing sends a signal to router, recalculates the routes and sends the updated routing information. Read through this article to find out how Static Routing differs from Dynamic Routing. What is Static Routing? One of the essential techniques ...

Read More

What is Telecommuting?

Kanal S Sajan
Kanal S Sajan
Updated on 10-Aug-2022 436 Views

Telecommuting is a work arrangement in which employees work from home or a location other than the employer's office. Working from home or a nearby location, such as a coffee shop, library, or co-working space, is common. What Is Telecommuting? When you telecommute, you work from a place other than an organization's physical location, and you normally rely on technology to help you do your tasks and communicate with your boss or coworkers. Telecommuting positions are available in a variety of industries, including sales, publishing, customer support, and marketing. Many office professions and technological positions (including computer and software programming) ...

Read More

Essential Components of a Sales Development Process

Kanal S Sajan
Kanal S Sajan
Updated on 10-Aug-2022 255 Views

Numerous factors might impact a company's performance, but the sales development process is the most crucial. Your sales team's total effectiveness in discovering leads, engaging and closing prospects, and reaching the company's goal values will be determined by having a well-structured plan and process for sales development. So, what are the components of a sales development process that must be present? A solid CRM platform, lead qualifying system, content management, sales analytics, and feedback and collaboration are all essential components of a successful sales development process. Sales development is placed at the top of the marketing funnel and is critical ...

Read More
Showing 43371–43380 of 61,297 articles
Advertisements