- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Pradeep Elance has Published 498 Articles

Pradeep Elance
444 Views
The measurements of angles in mathematics are done using these two units of measurement called degree and radian. They are frequently used in math calculations involving angles and need conversion from one value to another. In python we can achieve these conversions using python functions.degrees() FunctionThis function takes radian value ... Read More

Pradeep Elance
1K+ Views
In this article we develop a program to calculate the frequency of each element present in a list.Using a dictionaryHere we capture the items as the keys of a dictionary and their frequencies as the values.Example Live Demolist = ['a', 'b', 'a', 'c', 'd', 'c', 'c'] frequency = {} for item ... Read More

Pradeep Elance
463 Views
This function return the string representing a character whose Unicode code point is the integer supplied as parameter to this function. For example, chr(65) returns the string 'A', while chr(126) returns the string '~'.SyntaxThe syntax of the function is as below.chr(n) where n is an integer valueExampleThe below program shows ... Read More

Pradeep Elance
364 Views
The Numpy array support a great variety of data types in addition to python's native data types. After an array is created, we can still modify the data type of the elements in the array, depending on our need. The two methods used for this purpose are array.dtype and array.astypearray.dtypeThis ... Read More

Pradeep Elance
1K+ Views
Many times we may need to convert the data types of one or more columns in a pandas data frame to accommodate certain needs of calculations. There are some in-built functions or methods available in pandas which can achieve this.Using astype()The astype() method we can impose a new data type ... Read More

Pradeep Elance
263 Views
The calendar module in python has features to handle all the features related to calendar and dates. It is one of the very extensively used module which has many in-built functions to use dates in the python programs.Example Live Demoimport calendar print(calendar.calendar(2019))OutputRunning the above code gives us the following result − ... Read More

Pradeep Elance
141 Views
Handling date through some type of in-built calendar is central to any programming language. Here we see how to handle various date related functions available in python’s in-built library.firstweekday()Using this function we find the number assigned to the first day of the week.Example Live Demoimport calendar # print starting day ... Read More

Pradeep Elance
270 Views
There are a variety of mathematical series which python can handle gracefully. One such series is a series of repeated digits. Here we take a digit and add it to the next number which has two such digits and again the next number is three such digits and so on. ... Read More

Pradeep Elance
790 Views
In this program we will see how to accomplish the basic calculator functionalities of a calculator using a python program. Here we create individual functions to carry out the calculations and return the result. Also user input is accepted along with the choice of operator.Example# This function performs additiion def ... Read More

Pradeep Elance
127 Views
A prime number is a a positive integer which is divisible only by 1 or itself. Finding whether a number is prime or not is an interesting programming challenge for long time. Moreover there are different menthods and they have different efficiency. In this article we will look at three ... Read More