Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 2461 of 3366
401 Views
In this article, we will learn about different IDE’s available on Python for windows.PycharmInteractive python consoleSupport for web frameworksFaster refracting timeLesser developmentJupyter notebookCompatibility with almost every python moduleLesser space and hardware requirementsInbuilt terminal and kernel featuresA wide variety of widgets can be appliedWing ideInbuilt debugging toolsSupport for unit testingEasy code navigation capability.Komodo ideThird-party library supportXML autocompletionInbuilt refracting capacity.Sublime textCross-platformMultitaskingBetter customizationAtomBetter customizationBetter user interfaceCross-platform editorConclusionIn this article, we learned about IDE for Python programming on windows.
149 Views
In this article, we will learn about issuperset() in Python and its implementation in various areas.This method returns boolean True if all elements of a set B contains all elements set A which is passed as an argument and returns false if all elements of A not present in B.This means if B is a superset of A then itreturns true; else FalseExampleLet’s look at some example Live DemoA = {'t', 'u', 't', 'o', 'r', 'i', 'a', 'l'} B = {'t', 'u', 't'} print("A issuperset B : ", A.issuperset(B)) print("B issuperset A : ", B.issuperset(A))OutputA issuperset B : True B issuperset ... Read More
215 Views
In this article, we will learn about some Interesting facts about strings in Python 3.x. Or earlier.ImmutabilityAuto-detection of escape sequencesDirect slicingIndexed accessImmutabilityThis means that there is no permission of modification on type and we only have read only access to the strings.Exampleinp = 'Tutorials point' # output print(inp) # assigning a new value to a particular index in a string inp[0] = 't' print(inp) # raises an errorOutputTypeError: 'str' object does not support item assignmentAuto-detection of escape sequencesThe strings containing backslash are automatically detected as an escape sequence.Exampleinp = 'Tutorials point' # output print(inp+””+”101”)OutputTutorials point 101Direct slicingWe all are aware ... Read More
181 Views
In this article, we will about the implement isNumber() method using Python 3.x. Or earlier.This method takes in a string type as input and returns boolean True or False according to whether the entered string is a number or not. To do this we take the help of exception handling by using try and except statement.ExampleLet’s look at some example − Live Demo# Implementation of isNumber() function def isNumber(s): if(s[0] =='-'): s=s[1:] #exception handling try: n = int(s) return True # catch exception if any error is encountered ... Read More
262 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 nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to ... Read More
577 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 are merged into the input() function.Firstly let’s look at the input type of built-in functions for taking input in Python 2.x.Example# Input Given : String str1 = raw_input("Output of raw_input() function: ") print type(str1) str2 = input("Output of input() function: ") print type(str2) # Input Given : Float str3 = ... Read More
215 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 be removed to make the string into an anagram.Two strings are said to be anagrams of each other when they contain the same type of alphabets in any random order.The counter () method is present in the collection module available in Python. The prerequisite is to import the collections module ... Read More
466 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 the arguments are not of the same type. Error is encountered while comparing them.Let’s see what all ways we can implement the max() function first.Example Live Demo# Getting maximum element from a set of arguments passed print("Maximum value among the arguments passed is:"+str(max(2, 3, 4, 5, 7, 2, 1, 6))) # ... Read More
441 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 denoted by the first letter of function i.e. ‘U’ in probabilityExample Live Demo# Python 3.x. set union() function set_1 = {'a', 'b'} set_2 = {'b', 'c', 'd'} set_3 = {'b', 'c', 'd', 'e', 'f', 'g'} # union operation on two sets print("set_1 U set_2 : ", set_1.union(set_2)) print("set_3 U set_2 ... Read More
793 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 is a self-sufficient entity i.e. it has all the variables and associated functions with it. Objects have characteristics(variables) and features(methods), known as attributes.What is Modularity?Modularity refers to the act of partitioning the code into modules building them first followed by linking and finally combining them to form a complete project. ... Read More