disp chars

This commit is contained in:
Mert Gör ☭ 2023-05-24 04:08:03 +03:00
parent d7c17885bc
commit c511d0b553
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
def disp_chars(n, ch = '*'):
for i in range(1, n + 1): print(ch * i)
disp_chars(10)
disp_chars(10, '-')