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")
When I run the program is just defaults to comedy and then to Tartuffe.
How do I get it to recognize the difference genres in the string?
you need to store the input and then compare it to what you want, for example:
A better way to do this (in my opinion) would be to do something like:
because its easier to manage and read the different inputs.