Skip to main content

BUILT INS FUNCTIONS IN PYTHON


BUILT INS FUNCTIONS IN PYTHON

Every programming languages have certain pre-defined functions. Similarly, for certain tasks python has built in functions which you can access and understand as explained in the video.
 dir(__builtins__): This module will return all the built in function and identifiers directly available to the programmer.
 help(“function name”): This is the most important function in python. It gives the complete detail regarding the function which you mentioned inside help().


Comments

Popular posts from this blog

INPUT FROM USER AND STORE IT IN VARIABLE

INPUT FROM USER AND STORE IT IN VARIABLE We have discussed in the earlier videos and blogs regarding variables and multiple assignments. Now let’s move on with taking real time inputs from user and storing it in a variable. Name = input(“Enter the Name : ”) This function is used to ask real time data from users and store it in the variable defined as Name. This function takes the value in string. This means when you give input as a numeric value, it also considers it as a string input and you can access it as I have explained in the video. To consider this string as numeric value or integer, we need to type cast the taken input as shown. Age = int(input(“Enter your age :”)) This function will type cast your string into an integer value. Type Casting:   In simple words, it means conversion of data type. To make use of programming approach in day to day life, conversion of data type is very useful. As explained earlier input() function considers the value in stri...

COMPARISON, LOGICAL, ASSIGNMENT AND BITWISE OPERATORS

COMPARISON, LOGICAL, ASSIGNMENT AND BITWISE OPERATORS In this blog we will see about Arithmetic operators and understand how to use it with Python IDLE to perform certain calculations. PYTHON COMPARISON OPERATORS OPERATOR DESCRIPTION EXAMPLE        == Checks whether LHS is equal to RHS, then the condition becomes true 10==10 is true        != Checks whether LHS is not equal to RHS, then the condition becomes true 2!=3 is true        > Checks whether LHS is greater than RHS, then the condition becomes true 6>3 is true        < Checks whether LHS is less than RHS, then the condition becomes true 6<10 is true        >= Checks whether LHS is gre...

NUMBERS AND OPERATORS

NUMBERS AND OPERATORS Numbers are normal operand values which are used to perform set of task or operations using an operator. Numbers can be integers, decimal value, etc. There are many operators in Python. Some of them are listed below: Ø Arithmetic operators Ø Comparison operators Ø Logical operators Ø Bitwise operators Ø Assignment operators In this blog we will see about Arithmetic operators and understand how to use it with Python IDLE to perform certain calculations. PYTHON ARITHMETIC OPERATORS OPERATOR DESCRIPTION EXAMPLE Addition (+) Adds two values 5+6 = 11 Subtraction (-) Subtracts 5-3 = 2 Multiplication (*) Multiplies two values 4*8 = 32 Division (/) Divide by right hand operand 6/3 = 2 Modulus (%) Divides and gives the remainder 6%3 = 0 Exponential (**) Performs power calculations on operand 2**4 = 32 Dou...