Karthikeya Boyini has Published 2383 Articles

Python Program to extract email-id from URL text file

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

263 Views

Here we are using regular expression package for extracting email-id from the URL-text file. Given the URL- text file. Using regular expression package we define the pattern of email-id then use findall() function, using this method to check the text which will match with this pattern. Input text= Please ... Read More

Print powers using Anonymous Function in Python?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

223 Views

Here we used anonymous (lambda) function inside the map() built-in function. In Python, anonymous function is defined without name, its defined using lambda keyword. Algorithm Step 1: input n Step 2: input p Step 3: use anonymous function. Step 4: display result. Example Code # To ... Read More

Minkowski distance in Python

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

1K+ Views

The Minkowski distance is a metric and in a normed vector space, the result is Minkowski inequality. Minkowski distance is used for distance similarity of vector. scipy.spatial.distance.minkowski >>> from scipy.spatial import distance >>> distance.minkowski([1, 0, 0], [0, 1, 0], 1) 2.0 >>> distance.minkowski([1, 0, 0], [0, 1, 0], ... Read More

Python program to create a sorted merged list of two unsorted list

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

431 Views

Here two user input list is given, the elements of two lists are unsorted. Our task is to merged these two unsorted array and after that sort the list. Example Input: A [] = {100, 50, 150} B [] = {200, 30, ... Read More

Instruction type ADC R in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

5K+ Views

In 8085 assembly language coding, sometimes there is a requirement to add two numbers and where each of these numbers are having several Bytes in size. As example, let us add the following two 16-bit numbers. 1 10 50H ... Read More

Color game using Tkinter in Python

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

1K+ Views

For developing GUI applications tkinter is very popular and easy. Using tkinter easily develop GUI games. Here also we are trying to develop color game. In this game the player has to enter color of the word that appears on the screen and hence the score increases by one, the ... Read More

Python program maximum of three.

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

10K+ Views

Given three number a b and c, our task is that we have to find the maximum element in among in given number. Example Input: a = 2, b = 4, c = 3 Output: 4 Algorithm Step 1: input three user input number. Step2: Add ... Read More

Instruction type SUB R in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

4K+ Views

In 8085 Instruction, SUB is a mnemonic that stands for ‘SUBtract contents of R from Accumulator. Here R stands for any of the following registers, or memory location M pointed by HL pair. R = A, B, C, D, E, H, L, or M Mnemonics, ... Read More

Different ways to start a Task in C#

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

9K+ Views

To start a task in C#, follow any of the below given ways. Use a delegate to start a task. Task t = new Task(delegate { PrintMessage(); }); t.Start(); Use Task Factory to start a task. Task.Factory.StartNew(() => {Console.WriteLine("Welcome!"); }); You can also use Lambda. ... Read More

Python program to calculate BMI(Body Mass Index) of your Body

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:23

788 Views

We have to enter our height and weight. Our task is to calculate BMI using formula. Algorithm Step 1: input height and weight of your body. Step 2: then applying the formula for calculation BMI. Step 3: display BMI. Example Code height = float(input("Enter your height(m): ")) ... Read More

Advertisements