samedi 18 décembre 2021

How to print this pattern, I NEED QUICK

could someone please help me how to print this pattern in python, You need to create a diamond-shaped layered pattern as the output of this challenge. Each layer of the pattern will conatin lower case english alphabets starting with a in the outermost layer then b in the layer within and so on. The alphabets in a single row are seperated by a specific string named fillChar.

Note: there are spaces before each row starts and no spaces after row is completed in the pattern.

Input Format

The first line of input contains a single integer n denoting the size of the pattern. For example, if n=5, then pattern will contain alphabets from a to e. the second line will contain the string fillChar.

    [IMAGE][1]A

Aucun commentaire:

Enregistrer un commentaire