Introduction to Dictionaries

Write a function that receives a number X and creates a dictionary containing X elements. The elements will be the word "banana"*X and the number. If the number passed to the function is less than 1, return an empty dictionary.

  "banana": 1,
  "bananabanana": 2
  "banana": 1,
  "bananabanana": 2,
  "bananabananabanana": 3,
  "bananabananabananabanana": 4
import unittest

class BananaDictTest(unittest.TestCase):

    def test_dictionary_one(self):
        self.assertEqual(banana_dict(1), {'banana': 1})
    def test_dictionary_zero(self):
        self.assertEqual(banana_dict(0), {})

    def test_dictionary_three(self):
        self.assertEqual(banana_dict(3), {'banana': 1, 'bananabanana': 2, 'bananabananabanana': 3})