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.
Attachments:
Answers
Answered by
0
Answer:
oefsxjlslxjhvvkavhasxgxavhqxsxsojsxqlihvdelivwd
Similar questions