Ich hab heute früh (um 1...^^) mit Python angefangen und habe keinerlei Programmiererfahrung. Nach dem Einlesen hab ich veersucht, mein erstes "Programm" mit PyScripter zu schreiben (da mir nichts eingefallen ist, was ich brauche und auch kann, hab ich das erste geschrieben, was mir in den Kopf kam und einfach war ):
Code: Alles auswählen
text1 = "the game"
text2 = "Boxxy"
text3 = "Jews did WTC"
text4 = "Niggers love Watermelons and Chicken"
text5 = "Newfag"
text6 = "An Hero"
text7 = "Yo dawg"
text8 = "Rule 34"
meme = raw_input("What kind of meme would you like to see? Interesting, Stupid, Porn or Racist?")
if (meme == "Interesting" or "interesting"):
print text1
print text6
else:
if (meme == "Stupid" or "stupid"):
print text2
print text5
else:
if (meme == "Racist" or "racist"):
print text3
print text4
print text7
else:
if (meme == "Porn" or "porn"):
print text8
else:
print ("ERROR! Wrong meme picked!")
Wieso?