-3

I was just wondering how to take multiple inputs in python? I want to have multiple options for my user to give input, suppose the user put in "Yes" instead of "yes" in the, my code would go to think that the user doesn't want a reminder. Code example, please check lines number 2 and 5. How would I do have the user get input with that user putting in either "yes" or "Yes"?

LarsTech
  • 80,625
  • 14
  • 153
  • 225
  • Please review [ask] and [Please do not upload images of code/errors when asking a question.](//meta.stackoverflow.com/q/285551) – jmoerdyk Jul 20 '21 at 16:22
  • Post the code as text, not as an image. – LarsTech Jul 20 '21 at 16:22
  • [**PLEASE DO NOT POST TEXT AS IMAGES**](https://meta.stackoverflow.com/q/285551). Copy and paste the text into your question and use the code formatting tool to format it correctly. Images are not searchable, and can not be interpreted by screen readers for those with visual impairments. Use the [edit] link to modify your question. – MattDMo Jul 20 '21 at 16:22
  • DorR = DorR.lower() add this before if statement. this will convert the string to lower case and Check – Vignesh Jul 20 '21 at 16:27

1 Answers1

0

The typical way to achieve this is lower()

https://www.w3schools.com/python/ref_string_lower.asp

Just convert the input to lowercase (or uppercase, whatever matches your comparison).

edit, example:

if DorR.lower() == "yes":

ᴓᴓᴓ
  • 1,178
  • 1
  • 7
  • 18