All Star Code Challenge #1

From codewars.com by Edxael  (that’s me)

this is a super easy.

This Kata is intended as a small challenge for my students

All Star Code Challenge #1

Write a function, called sumPPG, that takes two NBA player objects and sums their PPG

Examples:

My answer:

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: “nekokat”.

 



Copyright 2017. All rights reserved.

Posted January 3, 2017 by Edmundo in category "Ruby Examples