Python Forum
Finding Number of Lowercase letters in a Set
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding Number of Lowercase letters in a Set
#3
Make smaller problems:

  1. create a function that counts the number of upper case characters in a single word
  2. create a second function that
    1. sets some length variable some absurdly high value,
    2. iterates your words,
    3. if the count returned by the first function is smaller than the current value of length, updates length with that value and stores the corresponding word.
    4. Finally return the last value of length and the associated word.
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
Reply


Messages In This Thread
RE: Finding Number of Lowercase letters in a Set - by Ofnuts - Apr-14-2017, 07:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding Row Number for Items in 2D array fafzal 2 3,204 Jan-10-2019, 06:11 AM
Last Post: fafzal
  Check if string is uppercase or lowercase and eliminate Wolfpack2605 1 5,559 Jan-01-2018, 05:03 AM
Last Post: Mekire

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020