Python códe for this pattern upto n rows?
*
* *
* * *
* * * *
* * * * *
Write one line códe for this question.
Share
Python códe for this pattern upto n rows?
*
* *
* * *
* * * *
* * * * *
Write one line códe for this question.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Program:
print(*["\n" + "* " * i for i in range(1, int(input("Enter N - ")) + 1)])
Algorithm: