python проверява дали низ е в ред
if "blah" not in somestring:
continue
python проверява, има ли значение в ред
def is_value_in_string(value: str, the_string: str):
return value in the_string.lower()
python проверява дали низ
type('hello world') == str
# output: True
type(10) == str
# output: False
как да се провери ред в оператора if python
if var == 'stringone' or var == 'stringtwo':
dosomething()