Learn practical skills, build real-world projects, and advance your career
Updated 2 years ago
exam-practice
Use the "Run" button to execute the code.
!pip install jovian --upgrade --quiet
import jovian
# Execute this to save new versions of the notebook
jovian.commit(project="exam-practice")
n=int(input("Enter n: "))
for i in range(n):
for j in range (i+1):
print(j+1,end=" ")
print()
# n=(int(input("Enter the number of rows")))
# for i in range (n):
# for j in range (i+1):
# print(j+1,end=" ")
# print()
Enter n: 5
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5