Ask coding questions

← Back to all posts
I need help
Axn (0)

print('Welcome to Should I Recycle This! (enter to continue)')
funnieasteregghaha = input()
if funnieasteregghaha == 'hello there':
print('General Kenobi')
print('Lets get started! Iʹll ask you some questions')
print('Is your item glass? yes/no')
stuff = input()
if stuff == 'yes':
'Any of the broken/shattered parts are not recyclable. Clean all the dirty parts so it doesnʹt contaminate the other recycables'
print('Is it a food box? yes/no')
food = input()
if food == 'yes':
print('Does it have food/grease on it? yes/no')
print('Is it paper? yes/no')
paper = input()
if paper == 'yes':
'If it is white office paper, newspaper, colored office paper, cardboard, white computer paper, magazines, catalogs, etc, you can recycle it. If it is coated and treated paper, paper with food waste, juice and cereal boxes, paper cups, paper towels, and paper or magazine laminated with plastic etc, you canʹt recycle it'
grease = input()
if grease == 'yes':
print('Donʹt recycle this, it will contaminate the other recycables')
print('Recycle it')

This isnt working, when we say yes to does it have food/grease on it it jumps to the paper thing :/

Axn (0)
TheC0derGirl (217)

theres an error in
print('Lets get started! Iʹll ask you some questions')
as you need double quotation marks (") because there's a single quotation mark in the text you want to print.

Chocolate16 (36)

I think here
print('Lets get started! Iʹll ask you some questions')
You were using I’ll but if you’ll do this program will think that that ‘ is incorrect so you better use I will

IcynDevz (764)

Can you please show the repl, thanks!