Login and get codingIn this Bite you complete
generate_xmas_tree
that takes arows
arg (= height of the tree). For each row you printrow_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 the 167th person to crack this Bite?
Resolution time: ~29 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 2.17 on a 1-10 difficulty scale.
» You can do it! 😌