top of page
  • Writer: VC Healy
    VC Healy
  • Jul 30, 2020
  • 1 min read

PyBites first rank in their coding challenges.


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

This is the last of the White Belt level of PyBites and I found this to be the easiest of the tasks. Taking two values and dividing them, converting strings to int, if the float returned had zero after the point ensure this did not show and convert to decimal to prevent the issue of computation giving an infinitely small difference.


There were a couple of exceptions, dividing two letters or getting a zero value. The former wasn't part of the test but the latter had to be caught and a specific value returned.


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

This was quite a challenge at first look. Putting up the tasks on the whiteboard gave a path to work through one at a time. Testing at every stage. The best test I found was to print out the text at the various stages of the text manipulation. This ensured it was as I expected and if it didn't work I could focus on why.

Watching the indent of the print statement is worthwhile, as indent too far and you will be printing out the steps of the method rather than the final outcome.


 
 

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

bottom of page