All Basic Functions In Python

All Basic Functions In Python





python,python functions,python tutorial,functions in python,python function,learn python,python basics,python for beginners,python 3,python tutorial for beginners,return function python,python (programming language),python functions return,python functions tutorial,python functions advanced,python functions examples,python functions basic,def function python,python functions and methods,functions,python function return,python define function,python list functions,python list,python,list in python,python lists,learn python,lists in python,list python functions,python tutorial,list functions in python,python list function,python list tutorial,python functions,python lists tutorial,python tutorial for beginners,list,python list built-in function,built in functions for lists in python,passing lists to functions in python,python 3 list,python programming,python list methods,functions







.1. Print function

   Print() function prints the input statement or object as a standard output in python language.
EX-
>>>a=10
>>>print(a)

output=> 10



object()
Creates a Featureless Object


oct()
converts integer to octal

open()
This function gives a File object

ord()
This function gives Unicode code point for
 Unicode character

pow()
This function gives x to the power of y


property()
This function gives a property attribute

range()
return sequence of integers between start and stop

repr()
This function gives printable representation of an object

reversed()
This function gives reversed iterator of a sequence

round()
rounds a floating point number to ndigits places.

set()
This function gives a  set

setattr()
sets value of an attribute of object

slice()
creates a slice object specified by range()

sorted()
This function gives sorted list from a given iterable

staticmethod()

creates static method from a function

str()

This function gives informal representation of an object



sum()



Add items of an Iterable

super()

Allow you to Refer Parent Class by super

tuple()

Creates a Tuple

type()

This function givesType of an Object

vars()

This function gives __dict__ attribute of a class
zip()

This function gives an Iterator of Tuples
list()
creates list in

locals()

This function gives dictionary of a current local symbol table
map()

Applies Function and This function gives a List

max()

This function gives largest element

memoryview()

This function gives memory view of an argument

min()



This function gives smallest element

next()

Retrieves Next Element from Iterator

getattr()

This function gives value of named attribute of an object

globals()

This function gives dictionary of current global symbol table

hasattr()

This function gives whether object has named attribute

hash()

This function gives hash value of an object

help()

 Invokes the built-in Help System

hex()

Converts to Integer to Hexadecimal

id()

This function gives Identify of an Object

input()

reads and gives a line of string

int()

This function gives integer from a number or string

isinstance()

Checks if a Object is an Instance of Class

issubclass()

Checks if a Object is Subclass of a Class

iter()

This function gives iterator for an object

len()

This function gives Length of an Object
   



bytes()

This function gives immutable bytes object

chr()

This function gives a Character (a string) from an Integer

classmethod()





This function gives class method for given function

compile()

This function gives a  code object

complex()

This function creates a Complex Number

delattr()

This function Deletes Attribute From the Object

dict()

Creates a Dictionary

dir()

Tries to Return Attributes of Object

divmod()

This function gives a Tuple of Quotient and Remainder

enumerate()




This function gives an Enumerate Object

eval()

Runs  Code Within Program

abs()

This function gives absolute value of a number

all()

This function gives true when all elements in iterable is true and false if not.

any()

This function checks if any Element of an Iterable is True

ascii()

This function gives String Containing Printable Representation

bin()

This function converts integer to binary string

bool()

Converts a Value to Boolean

bytearray()

This function gives array of given byte size

bytes()

This function gives immutable bytes object


About the Author

Sarkun is a dedicated research student at one of India's premier institutions, the Indian Institute of Science Education and Research (IISER). With over three years of experience in the realm of blogging, Sarkun's passion lies at the interse…

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.