python
# Python Program - Pattern Program 2
k=1
for i in range(0,5):
for j in range(0,k):
print("* ",end=" ")
k=k+2
print()
Output
# Python Program - Pattern Program 2
Using range
Was this helpful?
Similar Posts
- Pattern
- # Python Program - Convert Hexadecimal to Binary
- Python program to return multiple values from a function
- Python program to convert a List to Set
- Python program to Generate a Random String
- Python3 program to iterate over a list
- Python Measure the execution time of small bits of Python code with the timeit module