Code Monkey home page Code Monkey logo

python's Introduction

Advanced Python Functions

1. abs()

An absolute value is the distance between a number and 0 on the number line, meaning that it is the positive number of any interger, float, or complex number.

some unique attributes of absolute numbers are:

. They are always non-negative (meaning, they are 0 or positive)
. The absolute value of a negative number is equal to the absolute value of its positive equivalent. 

2. aiter()

In Python 3.10, the aiter() function was added. This function takes an asynchronous iterator and returns a synchronized iterable for use with that iterator.

3. all()

Returns True if each item in an iterable object is true and there are no false elements.

4. anext()

Return the next item in the asynchronous iterator that was given to you, or the default if the iterator does not contain any items.

5. any()

Returns If even one of the items in an iterable object is true, then true is returned.

6. bin()

Provides a number in its binary representation and returns it.

7. bool()

This function returns either the true or false value of the object. Only Integer value 0 is represented as False remaining all are True.

8. callable()

Returns If the object that was supplied can be called, then this value is True; otherwise, it will return False.

9. chr()

This function takes a Unicode code as an argument and returns a character that corresponds to that code.

10. classmethod()

Performs the transformation of a method into a class method.

11. complex()

Provides a number with a complex value as its return value.

12. delattr()

Deletes the method or property specified from the object specified if it was specified.

13. dict()

This function returns a dictionary (Array)

14. dir()

This function will return a list of all the properties and methods that are associated with the object.

15. divmod()

When argument1 is divided by argument2, this function returns both the quotient and the remainder.

16. enumerate()

This function takes a collection and returns an enumerated object from the collection, similar to a tuple.

17. eval()

Performs an evaluation and then executes an expression.

18. exec()

It executes the code that you specified (or object)

19. filter()

To remove items from an iterable object, use a filter function.

20. float()

Return a Python floating point number built from the given number.

21. format()

A value that you specify is given a format.

22. frozenset()

Gives back an object with the name frozenset.

23. getattr()

The value of the attribute that was provided is returned by this function (property or method)

24. globals()

This function takes the current global symbol table and returns it as a dictionary.

25. hasattr()

Returns True if the given object has the given attribute, method, or property.

26. help()

Functions to run the built-in help system.

27. hex()

Performs the conversion of an integer to its corresponding value in hexadecimal.

28. id()

This function gives back the object’s id.

29. input()

This function is accepting input from the user.

30. int()

Returns an integer number

31. isinstance()

Returns True if the object given is a copy of the object given.

32. issubclass()

Python issubclass() returns True if the class you choose is a subclass of the object you choose.

33. iter()

Returns an object with an iterator.

34. hash()

The value of the object’s hash that was supplied is returned.

35. len()

Returns an object’s length.

python's People

Contributors

nagilla-venkatesh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.