YouTip LogoYouTip

Python3 Func Number Min

# Python3.x Python3 min() Function [![Image 3: Python3 Numbers](#) Python3 Numbers](#) * * * ## Description The min() method returns the minimum value of the given arguments. The arguments can be sequences. * * * ## Syntax Here is the syntax for the min() method: min( x, y, z, .... ) * * * ## Parameters * x -- A numeric expression. * y -- A numeric expression. * z -- A numeric expression. * * * ## Return Value Returns the minimum value of the given arguments. * * * ## Example The following example demonstrates the use of the min() method: #!/usr/bin/python3print ("min(80, 100, 1000) : ", min(80, 100, 1000))print ("min(-20, 100, 400) : ", min(-20, 100, 400))print ("min(-80, -20, -10) : ", min(-80, -20, -10))print ("min(0, 100, -400) : ", min(0, 100, -400)) When the above example is executed, it produces the following result: min(80, 100, 1000) : 80 min(-20, 100, 400) : -20 min(-80, -20, -10) : -80 min(0, 100, -400) : -400 [![Image 4: Python3 Numbers](#) Python3 Numbers](#)
← Python3 Func Number SqrtPython3 Func Number Log10 β†’