P
P
Python Newbie2021-08-13 21:14:32
Python
Python Newbie, 2021-08-13 21:14:32

How to make a variable that contains one of the options?

How to make a variable or something else, for example:

a = "привет"
b = ("привет","хай","hello")# та самая переменная


#пример:

if a == b:
    print("Помогите пожалуйста")


So that the variable contains several options, and if one of these options is in the variable, then something.

How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-08-13
@Levman5

a in b

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question