dimanche 6 décembre 2020

how should I make a diamond pattern in python?

I'm new to python programming and as an assignment i have to make a pattern as following :

     *         *         *
    ***       ***       ***
   *****     *****     *****   
  *******   *******   *******   
 ********* ********* ********* 
*******************************
 ********* ********* *********
  *******   *******   *******
   *****     *****     *****
    ***       ***       ***
     *         *         *

thank you

Aucun commentaire:

Enregistrer un commentaire