Last answered:

29 May 2023

Posted on:

28 May 2023

0

Why is find_max equal to 0 instead of being equal to the first element in the list?

If we have a specific data set, why is our find_max initially set to 0 instead of the first element in our given list?
 

1 answers ( 0 marked as helpful)
Instructor
Posted on:

29 May 2023

0

Hey Christine,


Thank you for reaching out!


Setting the value of the find_max variable either as 0 or as data[0] would both output correct result.


Kind regards,

365 Hristina

Submit an answer