Python Pattern | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Python Pattern

Help me with code to get desired output using for loops **** *** ** *

7th Sep 2019, 10:32 AM
Pranav
3 Antworten
+ 7
show me your attempt
7th Sep 2019, 10:38 AM
ABADA S
ABADA S - avatar
+ 4
I will help you assume you have a coordinates of x and y x will print in a row y will go the next line so you have 2 nested loops the first is to y which have the second which is to x and aline break in x loop you should put a condition that decides to print * or space try to find this condition after that all will help you
11th Sep 2019, 3:02 PM
ABADA S
ABADA S - avatar
0
i was not able to create the logic. You may please give the code
11th Sep 2019, 2:57 PM
Pranav