N
N
N0nV3r2021-08-09 11:22:50
Python
N0nV3r, 2021-08-09 11:22:50

How to check if a number is in a python variable?

I need to check if there is a
+ sign in a variable!
If var has a + sign:
print("ok")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-08-09
@N0nV3r

if '+' in var:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question