Skip to main content

In Python To Print Multiple Stars On A Single Click In Form Of Right Triangle ......

 "copy" this given code and "paste" it on the python display to run the programme.

👇👇👇👇👇


n=int(input("Enter a Number:"))


for i in range(1,n+1):

    for j in range(1,i+1):

        print("*", end=" ")

    print()    


Comments

Popular posts from this blog

Print Natural Number In Reverse order

   It is be possible to print a number in reverse order :,,  like you input 5 then it will give you response like this:"5,4,3,2,1" If you want to apply this in python, then "copy" and "paste" the content given below  👇👇👇 FIRST METHOD n = int(input("Enter Number:")) print("Natural Numbers from" , n, "-1 in reverse") while (n>=1):     print(n, end=" ")     n-=1 SECOND METHOD n = int(input("Enter Number:")) print("Natural Numbers from" , n, "-1 in reverse") for i in range(n,0,-1):     print(i , end=" ")

How Internet Works?

    Introduction How does the Internet work? Good question! The Internet's growth has become explosive and it seems impossible to escape the bombardment of  www.com 's seen constantly on television, heard on radio, and seen in magazines. Because the Internet has become such a large part of our lives, a good understanding is needed to use this new tool most effectively. This whitepaper explains the underlying infrastructure and technologies that make the Internet work. It does not go into great depth, but covers enough of each area to give a basic understanding of the concepts involved. For any unanswered questions, a list of resources is provided at the end of the paper. Any comments, suggestions, questions, etc. are encouraged and may be directed to the author at the email address given above. Where to Begin? Internet Addresses Because the Internet is a global network of computers each computer connected to the Internet  must  have a unique address. Internet ad...

python

Program 6: Write a Program to enter the string and to check if it’s palindrome or not using loop. x = "malayalam" w = "" for i in x:      w = i + w if (x == w):      print("Yes") else:      print("No")