הלינקייה: מגזין חודשי למפתחים

רוצה לשמוע על כל האירועים, המדריכים, הקורסים והמאמרים שנכתבו החודש ?
הלינקייה הינו מגזין חופשי בעברית שמשאיר אותך בעניינים.
בלי ספאם. בלי שטויות. פעם בחודש אצלך בתיבה.

Subroutine Exercise

  1. Write 2 functions: The first returns the sum of its arguments, the second returns the multiplication of its arguments.
  2. Write a function that takes 7 values. The function throws an exception (hint: die) if any other number of arguments was entered
  3. Write a function that takes three numbers and returns the sum of the tens digit of them all. For instance, the inputs: 120, 140, 220 should return 8.
  4. Write a function that takes words and returns one scalar composed from concatenating all the words separated by comma
  5. Write a function that takes a list and a length, and returns a new list of only the words whose length is longer than the argument
  6. Write a function that takes a length and returns a randomized text string of that length (hint: use chr to transform a random number to a character code).

Link To Solutions

course: