Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python program to print inverted star pattern

rows = int(input("Enter the number of rows: "))  
 
for a in range(rows + 1, 0, -1):    
    for b in range(0, a - 1):  
        print("*", end=' ')  
    print(" ")
Comment

PREVIOUS NEXT
Code Example
Python :: create excel file python 
Python :: how to use dictionary in python 
Python :: python crash course 
Python :: valid parentheses 
Python :: string in list python 
Python :: how to add array in python 
Python :: how to set gpu python 
Python :: iterating index array python 
Python :: python countdown from 20 down to 0 
Python :: tkinter include svg in script 
Python :: windows 10 python path 
Python :: decode utf8 whit python 
Python :: add a new column to numpy array 
Python :: numpy loadtxt skip header 
Python :: get filename from path python 
Python :: pandas add prefix zeros to column values 
Python :: python json to dict 
Python :: swap in python 
Python :: python sum of a subset 
Python :: how to count repeated words in python 
Python :: chrome profiles user open with python 
Python :: django charfield force lowercase 
Python :: get method in python dictionary 
Python :: cv2 opencv-python imshow while loop 
Python :: spark.read.load 
Python :: remove all na from series 
Python :: appending to a list python 
Python :: string upper lower count python 
Python :: python cls command line 
Python :: generate n different colors matplotlib 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =