Categories
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
if '+' in var:
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question