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)
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