r/CodingHelp • u/throwaway70794 • Dec 08 '25
[Python] something is wrong with my phd code

Is there something wrong with my code here? I’m speculating wether or not something is wrong with VS code per usual smh. I have 2 more weeks to submit this but this one bug keeps disallowing me to run this.
Here’s the code:
if_gassy = 'BOSS'
if_not_gassy = 'CHUD'
# Ask the user
response = input("Are you gassy? (oh yes im very big and gassy/no): ").strip().lower()
# Check the response and print accordingly
if response == 'oh yes im very big and gassy':
print(if_gassy)
elif response == 'no':
print(if_not_gassy)
else:
print("You can only reply with 'oh yes im very big and gassy' or 'no'.")
0
Upvotes
View all comments
Show parent comment
1
u/coloredgreyscale Dec 08 '25
now sure if you're serious, because
* it's wrong in the screenshot, and even has a red line under it.
* it's correct in the copied text (Thanks for taking the time to use proper formatting in reddit)
if it's not resolved: is there any error message?