rage / programming-24

63 stars 39 forks source link

A typo in Part 4 in lists in the description of min, max, sum #8

Closed mathdebate09 closed 8 months ago

mathdebate09 commented 10 months ago

The first example for min, max, sum has an extra bracket while implementing the functions

my_list = [5, 2, 3, 1, 4]

greatest = max(my_list))
smallest = min(my_list))
list_sum = sum(my_list))

print("Smallest:", smallest)
print("Greatest:", greatest)
print("Sum:", list_sum)

it should be

my_list = [5, 2, 3, 1, 4]

greatest = max(my_list)
smallest = min(my_list)
list_sum = sum(my_list)

print("Smallest:", smallest)
print("Greatest:", greatest)
print("Sum:", list_sum)
Gudkat commented 8 months ago

fixed. ty for the feedback.