Answer to Question #157795 in Python for Kinarah

Question #157795

Write a program to output the following

**********

*. *

* PYTHON *

*. *

**********


1
Expert's answer
2021-01-23T10:20:14-0500
#!/usr/bin/env python3


# Declaring repetetive artesik (*)
star = '*'
new_line = '\n'


# Method for printing the ten stars
def print_stars():
    print(star * 10)


# Method for printing dot between stars
def print_star_and_dot():
    print(new_line + star + ". " + star + new_line)


# Printing the items
# Calling print_stars method
print_stars()


# Calling print_star_and_dot method
print_star_and_dot()
print(star + " PYTHON " + star)


# Calling print_star_and_dot method
print_star_and_dot()


# Calling print_stars method
print_stars()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS