0

How to crate triangle with stars

How to create a triangle pattern in python with stars

2nd Jan 2022, 3:10 PM
Dhwani Sharma
2 Respuestas
0
Use print() and print the *
2nd Jan 2022, 3:30 PM
Lisa
Lisa - avatar
0
print('\n'.join([' ' * ((10 - i) // 2) + '*' * i for i in range(1, 11, 2)]))
2nd Jan 2022, 4:21 PM
FanYu
FanYu - avatar