+ 2
If print then...
I aant to make it so the computer prints something and you can respond flr example: #Computer print(“Say Hello”) And if you reaspond and say Hello then the clmputer would say Hi
3 Answers
+ 2
Then you will have to use a custom name, not the regular print
+ 2
like:
def Print(A):
if "Hello" in A:
print("Hi!")
elif "Bye" in A:
print("Goodbye!")
+ 2
greetings = input('Say Hello:')
if greetings == 'hello':
print('Hi)