+ 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

11th Oct 2017, 2:12 AM
Aidan
Aidan - avatar
3 ответов
+ 2
Then you will have to use a custom name, not the regular print
11th Oct 2017, 2:19 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
like: def Print(A): if "Hello" in A: print("Hi!") elif "Bye" in A: print("Goodbye!")
11th Oct 2017, 2:20 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
greetings = input('Say Hello:') if greetings == 'hello': print('Hi)
11th Oct 2017, 3:43 AM
Poet🎭
Poet🎭 - avatar