Design Python c∅de for the pattern.
Share
Design Python c∅de for the pattern.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
"""
Project Type: Brainly Answer
Date Created: 13-02-2021
Date Edited Last Time: ---NIL---
Question Link: brainly.in/question/35111604
Question: Design Python c0de for the pattern.
* * * *
* * *
* *
* *
* *
*
Program Created By: atrs7391
Programming Language: Python
Language version (When program created or last edited): Python 3.9.1
"""
for i in range(6):
for j in range(7):
if (i == 0 and j % 3 != 0) or (i == 1 and j % 3 == 0) or (i-j == 2) or (i+j == 8):
print("*", end=" ")
else:
print(end=" ")
print()
HOPE IT HELPS :)