I agree. 🙂 I've noticed teachers will assign Python questions like this to their students to help them understand a lot of the "basic algorithms" that we get automatically in Python with functions like max().
Python is the big language to learn now. It’s what is taught in the freshman introduction engineering classes in college. But it is taught with the restrictions of not being allowed to use the built in functions. Any university taught student doesn’t get the luxury of all those built in functions. Hence why I am here for a refresher.
@@user-tz2zz5ij1s I've noticed the exact same thing. Teachers still want students to learn "the foundations" so they'll restrict usage of these sorts of functions that do things automatically. 🙂
The code for this video is here: github.com/portfoliocourses/python-example-code/blob/main/find_max.py. That code should not always give you a max of list[0] = 3. :-) I'm not sure why your code would do that, but it sounds like something is incorrect about the way the algorithm is implemented. Maybe you can compare your code to this code and find the difference. It could be something small like a variable name or spacing issue.
You're a godsend for us junior developers. I salute you and your content and everything about you! Thanks a lot bro
You’re very welcome and thank you for such kind words, it means a lot to me to hear this channel is helping you out! :-)
Cool! I'm glad I've just found your channel.
Subscribed.
Cheers. Thanks for the explanation.
You're welcome Raphael - and welcome aboard! :-)
Which editor do you use?
it's work cause 9 is the last value but if the last value was 8, it's superior than 3 but not the max
The code will work no matter what the numbers in the list are. :-)
@@PortfolioCourses I didn’t read correctly my bad
many thanks, subscribed
Welcome aboard! :-)
Not a problem for people who started programming with C language.
I agree. 🙂 I've noticed teachers will assign Python questions like this to their students to help them understand a lot of the "basic algorithms" that we get automatically in Python with functions like max().
Python is the big language to learn now. It’s what is taught in the freshman introduction engineering classes in college. But it is taught with the restrictions of not being allowed to use the built in functions. Any university taught student doesn’t get the luxury of all those built in functions. Hence why I am here for a refresher.
@@user-tz2zz5ij1s I've noticed the exact same thing. Teachers still want students to learn "the foundations" so they'll restrict usage of these sorts of functions that do things automatically. 🙂
why my max is always = list[0] = 3 ?
The code for this video is here: github.com/portfoliocourses/python-example-code/blob/main/find_max.py. That code should not always give you a max of list[0] = 3. :-) I'm not sure why your code would do that, but it sounds like something is incorrect about the way the algorithm is implemented. Maybe you can compare your code to this code and find the difference. It could be something small like a variable name or spacing issue.
@@PortfolioCourses u know what, i am wrong between '=' and '=='
Oh that makes sense, I'm glad you figured it out! :-)
1:39
Is there something about this point in the video you wanted to point out? :-)
@@PortfolioCourses No it is the code. 😉
Oooh I see haha, there is a link in the description to the code too, just so folks know! :-)
@@PortfolioCourses Ok thank you I subscribed your channel.😃
@@staacademy611 Awesome, welcome aboard! 🙂