Karthikeya Boyini has Published 2383 Articles

Dunder or magic methods in python

karthikeya Boyini

karthikeya Boyini

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

364 Views

magic methods that allow us to do some pretty neat tricks in object oriented programming. These methods are identified by a two underscores (__) used as prefix and suffix. As example, function as interceptors that are automatically called when certain conditions are met. In python __repr__ is a built-in function ... Read More

Generating Random id's using UUID in Python

karthikeya Boyini

karthikeya Boyini

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

700 Views

UUID is having the full form Universal Unique Identifier, it is a python library which supports 128 bits ids for generating random objects. Advantages of UUID As discussed, we can use it to generate unique random id for random objects. For cryptography and hashing applications, this id can be ... Read More

How to get synonyms/antonyms from NLTK WordNet in Python

karthikeya Boyini

karthikeya Boyini

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

2K+ Views

The WordNet is a part of Python's Natural Language Toolkit. It is a large word database of English Nouns, Adjectives, Adverbs and Verbs. These are grouped into some set of cognitive synonyms, which are called synsets. To use the Wordnet, at first we have to install the NLTK module, then ... Read More

Mutation Testing in C#

karthikeya Boyini

karthikeya Boyini

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

184 Views

Mutational testing in C# includes verifying the quality of a test suite in the active solution. For this, use a tool called “VisualMutant”. It sets as an extension to the Visual Studio IDE. The following are the capabilities of a testing tool. The following are the features of VisualMutant, which ... Read More

Instruction type ANA R in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

3K+ Views

In 8085 Instruction set, ANA is a mnemonic, which stands for “ANd Accumulator” and “R” stands for any one of the following registers, or memory location M pointed by HL pair. R = A, B, C, D, E, H, L, or M This instruction is used to AND ... Read More

Fraction module in Python

karthikeya Boyini

karthikeya Boyini

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

5K+ Views

In Python the Fraction module supports rational number arithmetic. Using this module, we can create fractions from integers, floats, decimal and from some other numeric values and strings. There is a concept of Fraction Instance. It is formed by a pair of integers as numerator and denominator. The class fractions.Fractionis ... Read More

Instruction type ORA R in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

6K+ Views

In 8085 Instruction set, ORA is a mnemonic, which stands for “OR Accumulator” and “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 This instruction is used to OR contents ... Read More

Instruction type XRA R in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

5K+ Views

In 8085 Instruction, XRA is a mnemonic that stands for “eXclusive OR Accumulator” and “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 This instruction is used to Ex-OR contents ... Read More

Class method vs static method in Python

karthikeya Boyini

karthikeya Boyini

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

18K+ Views

The class method in Python is a method, which is bound to the class but not the object of that class. The static methods are also same but there are some basic differences. For class methods, we need to specify @classmethod decorator, and for static method @staticmethod decorator is used. ... Read More

Instruction type CMC in 8085 Microprocessor

karthikeya Boyini

karthikeya Boyini

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

2K+ Views

In 8085 Instruction set, CMC stands for “CoMplement the Carry flag”. It performs complement operation on the cy flag, and the result is stored back in the cy flag. Mnemonics, Operand Opcode(in HEX) Bytes CMC 3F 1 The result of execution of this instruction ... Read More

Advertisements