Why does my code not work?
Hi. I've been learning on SoloLearn for 5 days aprox. and I have tried to program some easy stuff, but I dont know why it does not work like I wish. Could you guys help me please? Here's the code: input("Could you solve a simple equation? If you think you can, press ENTER") input("x+3=10") input("x= ") if input is 7: print("Good job!") print("You have won!") else: print("You missed!") print("You have got another chance.") input("x+3=10") input("x= ") if input is 7: print("Good job!") print("You have won!") else: print("You missed again!") print("You have lost!") I think the mistake is in "if input is 7:" , because wheather you input a 7 or not, the program will say you have missed. Any solutions? Thank you guys!