Built-in function in python

 Pre-defined functions:

  • Python language provides built-in functions called Pre-defined functions.
  • Python’s standard library is very extensive that offers many built-in functions that we can use without having to import any library.
  • The most widely used functions are

Example program:

  1. l=[8,6,1,5]

    print("List l=",l)

    print("The maximum value from this list is:",max(l))

    print("The minimum value from this list is:",min(l))

    print("The sum of value from this list is:",sum(l))

    print("The data type of l is:",type(l))

    print("The round of 7.13 of value is:",round(7.18,0))

    print("The power of 5 power 3 value is:",pow(5,3))

Output:

Share:

No comments:

Post a Comment

Popular Posts

Search This Blog

Powered by Blogger.

Service Support

Need our help to Learn or Post New Concepts Contact me

Recent Posts

Service Support

Need our help to Learn or Post New Concepts Contact me