Start with Python
This commit is contained in:
17
1- python/5-triangles-part-1/README.md
Normal file
17
1- python/5-triangles-part-1/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
Print a Triangle
|
||||
================
|
||||
|
||||
Using nested for loops, print a triangle like so:
|
||||
```
|
||||
>>> triangle(10)
|
||||
*
|
||||
**
|
||||
***
|
||||
****
|
||||
*****
|
||||
******
|
||||
*******
|
||||
********
|
||||
*********
|
||||
**********
|
||||
```
|
2
1- python/5-triangles-part-1/triangle.py
Normal file
2
1- python/5-triangles-part-1/triangle.py
Normal file
@ -0,0 +1,2 @@
|
||||
def triangle(num):
|
||||
pass
|
Reference in New Issue
Block a user