List Practice

  1. Write a function called doubled(nums) that takes a list of numbers as a parameter, and returns a new list of numbers in which each number from the original list has been doubled.
  2. Write a function called shortWords(words, top) that takes a lsit of strings as a parameter, and returns a new list of strings whose length is less than or equal to the integer top.