top of page

Changes to a List of Names

  • Writer: VC Healy
    VC Healy
  • Jul 31, 2020
  • 1 min read

Remove Duplicates, Capitalise Names, Change the Order, Find the smallest first name.


This was a great challenge, I got the tasks to work individually but then came the challenge of the secondary functions feeding of the output of the primary function.

This presented me with a couple of issues in the secondary functions, the received code from the primary had to be manipulated a little differently.

Another I encountered was that the output from the secondary function was giving double, treble the amount of output. I worked through this methodically and found the issue to be the use of a global variable by more than one function. Thus the list I thought to be empty held data. The solution, bring all the variables local to the functions.



 
 
 

Comments


© 2020 by Vincent Healy. Proudly created with Wix.com

bottom of page