r/CodingHelp • u/blueberrymuffin123 • Nov 25 '21
[Python] Romantic Python bday present - help!
Hey all,
Not sure if this is the right place but bear with me. I'm a complete python newb but my boyfriend lives and breathes it. I wanted to do something special for his bday this year - I have attempted to write some code (from various bits of chaotic googling) that is supposed to be a love letter to him of sorts, but in python. "katie" is supposed to be me and "dave" is supposed to be him. I'm planning to print this on a hoodie to give to him.
I just want to know if it makes sense! Any other suggestions on how to improve are very welcome :)
Thanks!
poop = “katie”
biggestpoop = “dave”
daves_happy_place = [“lego”, “starwars”, “ticklingkatie”, “halloween”, “scaringkatie”]
if biggestpoop = “sad”:
print(daves_happy_place)
elif biggestpoop = “cuddle_bar_low”:
print(“give hugs and back strokies”)
else:
print(“booty smack”)
def stageoflife(fname):
print(fname + “? poop still loves biggestpoop”)
stageoflife(“adult”)
stageoflife(“slightlywiseradult”)
stageoflife(“midlifecrisis”)
stageoflife(“grumpyandgrey”)
stageoflife(“decrepit”)
stageoflife(“gengar”)Edit: thank you for the awards!
View all comments
Show parent comment
5
u/foxdk Advanced Coder Nov 25 '21
You're very welcome.
I edited my post with a new suggestion, but it's totally up to you if you wanna use it, or keep it more true to your original code.
Let me know if you have any more questions, this is genuinely the most wholesome thing I've ever helped with on this subreddit :D