Bite 119. Xmas tree generator

In this Bite you complete generate_xmas_tree that takes a rows arg (= height of the tree). For each row you print row_number*2-1 stars and center them, so for default height=10 the tree would look like this:

         *
        ***
       *****
      *******
     *********
    ***********
   *************
  ***************
 *****************
*******************

No printing to the console this time, you return this output from the function (use newlines / \n between the lines). Good luck and keep calm and code in Python!

Will you be Pythonista #32 to crack this Bite?
It takes an average of ~30 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 2.0 on a 1-10 difficulty scale.
» You can do it! 😌

Login and get coding
We use Python 3.7