input("Would you like to read: comedy, political, philisophical, or tragedy?")
a = "comedy"
b = "political"
c = "philisophical"
d = "tragedy"
if a:
input("Would you like the author's nationality to be: English or French?")
e = "French"
d = "English"
if e:
print("Tartuffe")
elif d:
print("Taming of the Shrew")
当我运行程序时,它只是默认为喜剧,然后是 Tartuffe。
如何让它识别字符串中的不同流派?