#How to I make the result to be like the example

19 messages · Page 1 of 1 (latest)

flint lion
#

im so confused, what's the answer u wanna get?

worn gate
#

but What Ive got is

#

minimum :
-10
maximum :
8

flint lion
worn gate
worn gate
flint lion
#

Gimme few mins

south vale
#

If the only problem is the error, read the error!

worn gate
#

Sorry but I’m kinda new at this I don’t rrly understand TT

south vale
#

You cannot concatenate strings and numbers. An easy fix here is replacing the plus sign with a colon.

worn gate
#

One sec

south vale
#
def max_value(list):
    max = list[0]
    for i in list:
        if i > max:
            max = i
    return max

def min_value(list):
    min = list[0]
    for i in list:
        if i < min:
            min = i
    return min

maxmin = ([2,3,-2,4,-7,8,-10])

print('minimum', min_value(maxmin))
print('maximum', max_value(maxmin))
worn gate
#

Oh it worked now

#

Tysm TT

#

❤️

south vale
#

no problem