The following code will print a triangle of stars.
How we can obtain the same result using while loop? And explain how it works?
Thanks in advance for any help?
How we can obtain the same result using while loop? And explain how it works?
Thanks in advance for any help?
l=int(input("Enter the limit:")) for i in range(1,l+1): for j in range(i): print("*",end="") print()
TuxAndrew
Linux - RedHat,cPANEL CentOS,Ubuntu,Azure/AWS Administrator,
Assistance, Analysis and Diagnosis. Skype: tuxandrew,
[email protected]
Linux - RedHat,cPANEL CentOS,Ubuntu,Azure/AWS Administrator,
Assistance, Analysis and Diagnosis. Skype: tuxandrew,
[email protected]