How to print one answer from two different inputs in Python 3?

user7478365

I'm relatively new to the Python and stackoverflow community and would like some help on a particular problem I've been finding when writing my first "helloworld file".

The problem is that is that I can't find a way to print one answer from two different input string outcomes...

if information == ("Yes" or "yes") : #still trying to figure out how to make the program respond with "Ok" with both the inputs, "Yes" and "yes"
print('Ok')
print('Ok')

Any help/answers would be greatly appreaciated.

Jay Parikh

Try this

if information == "Yes" or information == 'yes': 

Hope this helps

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to print the random answer from the given answer in python

How to automatically answer python inputs

How to read two inputs of different data types in one space separated line in python?

Getting the value from one table with inputs of two different tables

How to put two different type inputs in one line?

Python: How to print multiplication table based on two inputs?

Python: How do I take two different column inputs from the user and return the value of another column?

python print value from two different dictionary

How do you store two different inputs from the same variable?

print one two three in sequence from three different threads?

Python3 : How two objects from same class are different?

print(eval("print(2+3)")) prints 2 different answer

"how to print multiple user inputs on one line"

How am I getting two different results from same Python print command?

How to set default value for multiple inputs from one line in python

How to list two items from two different python lists as one item on a new list?

How to read multiple images from two different folders one by one using python?

how to search two different ranges and input answer

Pandas Dash - How could i bind two different inputs to one output?

How can i add two image from two different inputs on single page in codeigniter

Python: How to alternate between two questions to retrieve user inputs for two different lists?

How to print out an answer in decimal using python?

how to print the text inputs from the loop in kivy

How to print all inputs of string from a for loop?

How to print both matching lines from two different files?

How to reference two columns from two different sheets in one query

SELECT total from two different table in mysql but getting different answer

How do i call two variable from two different function and add them?(Python3)

How to use Threading to print in two different places Python?