- 1
In operator
How to use in operator with input() text?
4 Respuestas
+ 5
Renat Salyukov ,
your question seems not to be complete. please give some more information about:
- programming language you wanted to use
- the specific case you wanted to implement the in operator
- input data and output samples
- if it is related to a sololearn tutorial, please name it and also give us the exercise / lesson number.
thanks!
+ 3
The same way as with every other text.
+ 2
In Python,you could do something like this
txt= input()
if "why" in txt:
print("Why not")
else:
print(txt)