I
Ilya B.
Hello,
I'm working through Chris Pine's book, "Learn to Program"...stuck with
this in Ch. 12 --
I have to sort an array of words, e.g.
user_inputs = [bird, zoo, dog]
without using the .sort method, e.g.
user_inputs.sort
Can someone please point me in the right direction on how to perhaps
loop through all words in an array and compare them to each other using
< to find the "smallest" word in the array?
I'm working through Chris Pine's book, "Learn to Program"...stuck with
this in Ch. 12 --
I have to sort an array of words, e.g.
user_inputs = [bird, zoo, dog]
without using the .sort method, e.g.
user_inputs.sort
Can someone please point me in the right direction on how to perhaps
loop through all words in an array and compare them to each other using
< to find the "smallest" word in the array?