(Oct-18-2017, 01:22 AM)ichabod801 Wrote: It looks you are coding in Python 3.0+. If that's the case, input returns a string. So fact is a string and you are comparing it to an integer, and they will never be equal. You either need to convert face to an integer with int(), or you need to compare it to a string ('1').
I've done:
fact= input() int(fact) if fact==1: print('What kind of meat is Spam?', end='Spam is a canned precooked meat product made by the Hormel Foods Corporation, first introduced in 1937. The labeled ingredients in the classic variety of Spam are chopped pork shoulder meat, with ham meat added, salt, water, modified potato starch as a binder, sugar, and sodium nitrite as a preservative.')And I still doesn't give me the if statement if I input one