Showing posts with label function program in python. Show all posts
Showing posts with label function program in python. Show all posts

Friday, November 27, 2020

,

ord()Function in python with it's example

 ord function in python is used to return an integer representing of Unicode character.Syntax:- ord(ch) Parameters For ord function in python This function take just only one perameter and that known as ch (a Unicode character) Return value The ord() function in python returns an integer representing...

Tuesday, November 24, 2020

, , ,

Use of Range Function In Python With Program

 python range function in python return the sequence of numbers between the start integer value to the stop integer.Syntax : - range(stop) range(start, stop[, step]) Parameters For range() function in python:- Range function takes the three arguments which is given below :- first one is...

Wednesday, November 18, 2020

, , ,

frozenset() function in python With Example Code - Python Function

 The frozenset() function in python is an inbuilt function is Python.That Function takes an iterable object as input and makes them immutable. it freezes the iterable objects and makes them unchangeable.frozen sets can be helpful in  Dictionary it can be used as key because it remain...

Thursday, November 12, 2020

, ,

Example for getattr() function in python

 getattr() function in python is sued to get the value of an object attribute and it return the default value if no attribute of that object is found.Example for getattr() function in python The reason of using getattr() function because it return the default value.Now let see the basic syntax...

Sunday, November 8, 2020

, ,

Example Program for delattr() function in python

Python delattr() function used to delete an attribute from an object.Syntax For delattr :- delattr(object, name)delattr () Parameters in PyhtonThere two attribute which is used in Delattr () function in python:-First one is object where name attribute is removed from that object. second one is...

Saturday, November 7, 2020

, ,

Example Program for complie() function in python - Python Program

  The complie() function in python is used to return python code object from a source like (string,AST object,byte string).Syntax For Complie(): - compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1)Well the return object from the compile function in python can be called...