min(tuple)
tuple -- 這是從中要返回最小值元素的元組。
#!/usr/bin/python3 tuple1, tuple2 = ('maths', 'che', 'phy', 'bio'), (456, 700, 200) print ("min value element : ", min(tuple1)) print ("min value element : ", min(tuple2)) )
min value element : bio min value element : 200