Welcome to KD-DMOJ!
posted on Dec. 2, 2017, 8:00 a.m.
Welcome to the Kuwait Developers DMOJ! This is the Programmers Gym where you can flex your brain muscles and sharpen your programming skills.
Get started by checking the available problems here.
def rhyme():
return "In the world of code, where errors reside,\nI seek the logic, a coder's guide."
def stanza():
return (
"Indentation aligns, like verses in rhyme,\n"
"Syntax and semantics, a dance through time."
)
def refrain():
return "Python, my language, in loops and in line,"
def decorative_line():
return "*" * 40 # ASCII art line for decoration
def pretty_poem():
return (
decorative_line() + "\n" +
refrain() + "\n" +
decorative_line() + "\n" +
stanza() + "\n" +
decorative_line() + "\n" +
refrain() + "\n" +
decorative_line() + "\n" +
stanza() + "\n" +
decorative_line() + "\n" +
rhyme() + "\n" +
decorative_line()
)
print(pretty_poem())
Comments
This is your first comment!