Apr-14-2017, 07:29 AM
Make smaller problems:
- create a function that counts the number of upper case characters in a single word
- create a second function that
- sets some
length
variable some absurdly high value,
- iterates your words,
- if the count returned by the first function is smaller than the current value of
length
, updateslength
with that value and stores the corresponding word.
- Finally return the last value of
length
and the associated word.
- sets some
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net