print("Enter the Number of Rows: ", end="")
row = int(input())
num = 1
for i in range(row):
for j in range(i+1):
print(num, end=" ")
num = num+1
print()
#clcoding.com
Enter the Number of Rows: 6 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Python Coding August 14, 2022 Python No comments
print("Enter the Number of Rows: ", end="")
row = int(input())
num = 1
for i in range(row):
for j in range(i+1):
print(num, end=" ")
num = num+1
print()
#clcoding.com
Enter the Number of Rows: 6 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Free Python PDF Books
— Python Coding (@clcoding) October 6, 2022
🧵:
Can you guess the output of the second piece of code?🐍
Posted by Python Coding on Tuesday, 16 February 2021
0 Comments:
Post a Comment