-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathTriangleUtilities.py
More file actions
44 lines (36 loc) · 993 Bytes
/
TriangleUtilities.py
File metadata and controls
44 lines (36 loc) · 993 Bytes
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
"""
TriangleUtilities - Python equivalent of Java TriangleUtilities class
Contains functions for generating ASCII triangle patterns using loops
"""
def get_row(number_of_stars):
"""
Return string of asterisks with specified width
Args:
number_of_stars: Width of the row (number of asterisks)
Returns:
String of asterisks
"""
return None
def get_triangle(number_of_rows):
"""
Return string representation of triangle with specified number of rows
Args:
number_of_rows: Height of triangle
Returns:
String representation of triangle
"""
return None
def get_small_triangle():
"""
Return string representation of small triangle (4 rows)
Returns:
String representation of 4-row triangle
"""
return None
def get_large_triangle():
"""
Return string representation of large triangle (10 rows)
Returns:
String representation of 10-row triangle
"""
return None