0% found this document useful (0 votes)
18 views1 page

Def Print

The document defines a print_bordered_block function that takes in text and prints it surrounded by asterisk borders. It calls this function to display the text "WAP To Display EYE With The Help Of '*' Pattern " with borders. It then prints the patterns to display an eye using asterisks.

Uploaded by

trilochangorai9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Def Print

The document defines a print_bordered_block function that takes in text and prints it surrounded by asterisk borders. It calls this function to display the text "WAP To Display EYE With The Help Of '*' Pattern " with borders. It then prints the patterns to display an eye using asterisks.

Uploaded by

trilochangorai9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

def print_bordered_block(text):

border_char = "*"

border_line = border_char * (len(text) + 4)

margin_text = f"{border_char} {text} {border_char}"

print(border_line)

print(margin_text)

print(border_line)

print_bordered_block("WAP To Display EYE With The Help Of '*' Pattern ")

print(" *************** ")

print(" ***** ***** ")

print(" ***** ***** ")

print(" *** ******************* *** ")

print(" *** * *** * *** ")

print(" ** * * * * ** ")

print(" * * * * * * ")

print(" * * * * * * ")

print(" * * * * * *")

print(" * * * * * * ")

print(" * * * * * ")

print(" ** * *** * ** * ")

print(" *** ******************* *** ")

print(" *** *** ")

print(" ***** ***** ")

print(" ***** ***** ")

print(" *************** ")

You might also like