Program in python to print
1
2 2
3. 3 3
4 4 4 4
5 5 5 5 5
Answers
Answer:
# This program prints Hello, world!
Explanation:
In this program, we have used the built-in print() function to print the string Hello, world! on our screen.
By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes.
IF IT IS CORRECT PLEASE MARK ME AS BRAIN LIST!!!
"""
Project Type: Brainly Answer
Date Created: 10-02-2021
Date Edited Last Time: ---NIL---
Question Link: https://brainly.in/question/34939739
Question: Program in python to print -
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Program Created By: atrs7391
Programming Language: Python
Language version (When program created or last edited): Python 3.9.1
"""
for i in range(1, 5+1):
for j in range(i):
print(i, end=" ")
print()