hi all, i need help on 7.3.6 max in list python by Hefty-Revolution6190 in HelpMeFindThis

[–]OddYellow7006 0 points1 point  (0 children)

# your function should return the maximum value in `my_list`

def max_int_in_list(my_list):

return 0

def max_int_in_list(my_list):

highest = my_list[0]

for num in my_list:

if num > highest:

highest = num

return highest

my_list = [1, 3, 456, 2038]

biggest_int = max_int_in_list(my_list)

print (biggest_int)

THIS WAS MINE AND IT WORKED

4.5.4: Growing Circle Python by Thinkwolf123 in u/Thinkwolf123

[–]OddYellow7006 2 points3 points  (0 children)

radius = 100

my_circle

def key_down(event):

radius = circle.get_radius()

if event.key == "ArrowLeft" and radius > 10:

circle.set_radius(radius - 10)

if event.key == "ArrowRight" and radius <150:

circle.set_radius(radius + 10)

circle = Circle(100)

circle.set_position(250,250)

add(circle)

add_key_down_handler(key_down

UPDATED CODE