Fir tree
Created on Jan. 9, 2018
by Julien Palard
You'll write a Python 3 program drawing a fir tree.
The size of the drawed fir tree will depend on the single parameter
given to your program. As always, print a human error message if no
parameter are given to your program.
Given 0, your program should display nothing.
Advice
You can test is for several values of the parameter here:
https://sapin.hackinscience.org/?n=10
https://sapin.hackinscience.org/?n=5
etc...
Here is what it should look like:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96 | $ for i in $(seq 5); do python3 solution.py $i; done
*
***
*****
*******
|
*
***
*****
*******
*****
*******
*********
***********
*************
|||
|||
*
***
*****
*******
*****
*******
*********
***********
*************
***********
*************
***************
*****************
*******************
*********************
|||
|||
|||
*
***
*****
*******
*****
*******
*********
***********
*************
***********
*************
***************
*****************
*******************
*********************
*****************
*******************
*********************
***********************
*************************
***************************
*****************************
|||||
|||||
|||||
|||||
*
***
*****
*******
*****
*******
*********
***********
*************
***********
*************
***************
*****************
*******************
*********************
*****************
*******************
*********************
***********************
*************************
***************************
*****************************
*************************
***************************
*****************************
*******************************
*********************************
***********************************
*************************************
***************************************
|||||
|||||
|||||
|||||
|||||
|