Print A Tree:
*
***
*****
*****
******
Note:
1. for printing an underscore character use print('_')
and for a star character use print('*')
2. You can assume there are no spaces between any two characters printed. So just print 'or * or switch to next line whenever needed.
3. You can use print (-----1') directly for the last line. For the rest of the lines, you have to use nested loops.
please help me
Answers
Answered by
1
Dear Mate !
Explanation:
Your question is inappropriate, we will not be able to answer, So kindly try to post the question clearly. Then we will be able to answer.
Hope you will do that and follow me !
Thank you !
Similar questions