- 1
In pyhton i want to code something like this( if this word is mentioned print this)..but i dont know how...help
4 Respostas
+ 1
but i want to pri t "this" whenever the "word" is mentioned
+ 1
like if i writ3 this then the word comes up
+ 1
input:
string="Hello world"
if Hello in string:
print ( 'yes')
if Hi in string:
print ( ' Hi is in string')
output:
yes
0
just a variable?
word="this"
print(word)