Pseudocode poems are poems that work both as an algorithm/program and as a poem. Implement and run them, as well as reading them. Here are some Pseudocode Love Poems for Valentine’s Day.
Go to our pseudocode poem page for more about them.
Here is a romantic inclined poem for Valentine’s day based on selection.
Violets are violet if roses are red and violets are blue then I say "Life is sweet" else I say "I love you"
Here it is implemented as a Python program (with appropriate initialisation).
def violetsareviolet():
"""Violets are violet"""
roses = 'red'
violets = 'violet'
if roses == 'red' and violets == 'blue':
print('Life is sweet')
else:
print('I love you')
violetsareviolet()
Here is a pseudocode love poem based on repetition.
My love for you is endless my love is true while my love is true I say "I love you"
Here it is implemented as a Python program.
def myloveforyouisendless():
"""My love for you is endless"""
my_love = True
while my_love == True:
print('I love you')
myloveforyouisendless()
Go to our pseudocode poem page for more about them.

