Write a program to output the following
**********
*. *
* PYTHON *
*. *
**********
#!/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()
Comments
Leave a comment