Python Forum

Full Version: Let me understand
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
response = 'Y' or 'N'

answer = "Left"
if answer == "Left":
  print "This is the Verbal Abuse Room, you heap of parrot droppings!"
Output:
This is the Verbal Abuse Room, you heap of parrot droppings!
Please let me understand why should we use "response = 'Y' or 'N'" code? & how it'll work?
You don't need this statement. Furthermore, 'Y' or 'N' is the same as 'Y' in python.
This question was answered so many times.... This is my old answer

PS Try to give your questions more meaningful names in the future - it will help your potential helpers
(Aug-02-2018, 12:03 PM)volcano63 Wrote: [ -> ]PS Try to give your questions more meaningful names in the future - it will help your potential helpers

And it will help other people who might have the same problem.
Sir I don't understand how to write a meaningful programming question, so sir if give an example how to write, it'll be very helpful for me in future... Thank you so much for your feedback about my question..