Pattern Printing (Problem 22) - InfyTQ Solution in Python
Pattern Printing (Problem 22)
InfyTQ Solution in Python
PROBLEM STATEMENT
Write a python function to print the given number of diagonal lines of stars.
Sample input: 5
Expected output:
*
.*
..*
...*
....*
Note: Setting the end parameter of the print function to empty string prevents the issuing of the new line.
Example: print(".",end="") will maintain the cursor in the same line after displaying "."
SOLUTION
SHARE
If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
CODE TOGETHER..GROW TOGETHER.
Newer Posts
Newer Posts
Older Posts
Older Posts
Comments