Jul-30-2019, 03:57 PM
for rows in range(1, 10): if rows > 2: print('@') for i in range(rows-2): print(f'@{i*" "}@') print('@'*rows) else: for i in range(1, rows+1): print('@'*i) print()
Hollow triangle-drawing characters param error.
|
|
Messages In This Thread |
Hollow triangle-drawing characters param error. - by phob0s - Jul-30-2019, 03:35 PM
RE: Hollow triangle-drawing characters param error. - by ichabod801 - Jul-30-2019, 03:53 PM
RE: Hollow triangle-drawing characters param error. - by ThomasL - Jul-30-2019, 03:57 PM
RE: Hollow triangle-drawing characters param error. - by SheeppOSU - Jul-30-2019, 04:20 PM
RE: Hollow triangle-drawing characters param error. - by phob0s - Jul-31-2019, 08:18 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
![]() |
triangle numbers | Woody_MC_2022 | 5 | 2,488 |
Sep-24-2022, 08:14 PM Last Post: deanhystad |
Numpy error while filling up matrix with Characters | august | 4 | 3,349 |
Apr-13-2022, 10:28 PM Last Post: august |
|
Remove escape characters / Unicode characters from string | DreamingInsanity | 5 | 22,588 |
May-15-2020, 01:37 PM Last Post: snippsat |
|
Fill a value in triangle shape in Matrix | lynx | 0 | 2,529 |
Dec-07-2019, 06:32 AM Last Post: lynx |
|
Printing out a triangle using nested for loops | MrGoat | 12 | 9,144 |
Jan-16-2019, 07:21 PM Last Post: ichabod801 |
|
Triangle: max path sum | Mateoo | 1 | 3,573 |
Jan-10-2019, 09:16 PM Last Post: stullis |
|
tf.gfile.FastGFile error unicode ( japanese characters ) | majinbuu | 2 | 3,798 |
May-13-2018, 02:11 PM Last Post: majinbuu |
|
Area of a triangle | OmarSinno | 8 | 7,654 |
Sep-25-2017, 08:10 PM Last Post: OmarSinno |
|
'string index out of range' error when code replaces characters | Ivan | 1 | 4,560 |
Mar-04-2017, 05:04 PM Last Post: Ivan |