Python Pattern Programs | Printing Stars '*' in Reverse Pyramid Shape

Veröffentlicht am: 24 February 2017
auf dem Kanal: Amulya's Academy
135,105
1.3k

In this Python Pattern Printing Programs video tutorial you will learn to print star '*' in reverse pyramid shape.

To print star reverse pyramid patterns in python, you have to use two for loops.in that the first loop is responsible for rows and the second for loop is responsible for columns.In the column we need to concentrate on printing stars and printing space separately.

If you are using Python 2 then if you write this code you will get error because in python 2 print is not a function and also we cant use end there so you need to use print as statement and instead of end you need to use coma (,) at the end of print statement to get the same output.

in python 3 you write print like this:
print("*',end="")

in python 2 you need to write:
print "*",

For more free tutorials on computer programming
  / amulsacademy  
twitter.com/AmulsAcademy


Auf dieser Seite können Sie das Online-Video Python Pattern Programs | Printing Stars '*' in Reverse Pyramid Shape mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Amulya's Academy 24 February 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 135,105 Mal angesehen und es wurde von 1.3 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!