Pavitra has Published 177 Articles

What makes Python Cool?

Pavitra

Pavitra

Updated on 29-Aug-2019 08:03:48

152 Views

In this article, we will learn about what all features makes python cool and different from other languages.>>>import thisOutputThe Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. The flat is better than ... Read More

Python vulnerability in input() function

Pavitra

Pavitra

Updated on 29-Aug-2019 07:55:48

388 Views

In this article, we will learn about how the input function behaves in an undesirable manner in version 2.x. Or earlier. In version 2.x. the raw_input() function works as replacement of the input() function . In newer versions 3.x. or later all the desirable features & functionalities of both functions ... Read More

Using else conditional statement with for loop in python

Pavitra

Pavitra

Updated on 29-Aug-2019 07:51:11

310 Views

In this article, we will be learning about loop-else statements in Python 3.x. Or earlier. In this tutorial, we will focus on for loop & else statement way of execution.In other languages, the else functionality is only provided in if-else pairs. But Python allows us to implement the else functionality ... Read More

Using Counter() in Python 3.x. to find minimum character removal to make two strings anagram

Pavitra

Pavitra

Updated on 29-Aug-2019 07:45:40

116 Views

In this article, we will learn about how we can make a string into a pangram using the counter() function in Python 3.x. Or earlier. To do so we are allowed to remove any character from the input string. We will also find the number of such required characters to ... Read More

Use of min() and max() in Python

Pavitra

Pavitra

Updated on 29-Aug-2019 07:19:11

302 Views

In this article, we will be learning about min and max functions included in the Python Standard Library. It accepts infinite no of parameters according to the usageSyntaxmax( arg1, arg2, arg3, ...........)Return Value − Maximum of all the argumentsErrors & Exceptions: Here error is raised only in the scenario where ... Read More

Union() function in Python

Pavitra

Pavitra

Updated on 29-Aug-2019 06:57:55

263 Views

In this article, we will be learning about union() i.e. one of the operations performed on the set() type. Union of all input sets is the smallest set which contains the elements from all sets excluding the duplicate elements present in sets.Syntax.union(, .......)Return type − typeSymbol − It is ... Read More

Understanding Code Reuse and Modularity in Python 3

Pavitra

Pavitra

Updated on 29-Aug-2019 06:51:29

480 Views

Introduction to Object-Oriented Programming(OOP)?OOP refers to Object-Oriented Paradigm and is referred to as the heart of programming methodology. It includes several concepts like polymorphism, encapsulation, data hiding, data abstraction, inheritance & modularity.OOP gives data the prime consideration and by providing an interface through the functions associated with it. An object ... Read More

Processing time with Pandas DataFrame

Pavitra

Pavitra

Updated on 29-Aug-2019 06:44:37

121 Views

In this article, we will learn about generating & processing different timestamps using built-in pandas library. We are also using the numpy module to generate and modify the database needed for the timestamp generation.Preferable IDE: Jupyter notebookBefore beginning this tutorial we must install pandas and numpy library. For this jupyter ... Read More

First-Class Citizens in Python

Pavitra

Pavitra

Updated on 29-Aug-2019 06:37:15

2K+ Views

First-class citizens are entities that enable support for all the operations facilitating other fellow entities.These entities are often used : while passing an argument , returning a value from function , conditional modifications & value assignment.In this article, we will look at the implementation & usage of first-class citizens in ... Read More

Learning Model Building in Scikit-learn: A Python Machine Learning Library

Pavitra

Pavitra

Updated on 29-Aug-2019 06:20:30

170 Views

In this article, we will learn about the Learning Model Building in Scikit-learn: A Python Machine Learning Library.It is a free machine learning library. It supports various algorithm like the random forest, vector machines & k-nearest neighbours with direct implementation with numpy and scipy.Importing the datasetimport pandas Url = < ... Read More

Advertisements