min function

Syntax

  • float min(a, b)

Parameters

  1. afloat or string
    b must have the same type.
  2. bfloat or string
    a must have the same type.

Returns

Returns minimum of a and b.

Description

The min function finds the minimum of a and b. It also works if a and b are strings.

Related

Examples

example.1
	min(10, -10)
	# result = -10
example.2
	min("abc", "def")
	# result = "abc"

In this topic