• JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroid
    WindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-Bitrix
    LaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows Server
    GitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
  • Ask
  • Leaders

Categories

JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroidWindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-BitrixLaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows ServerGitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
Programming
JavaScript PHP HTML Css Python WordPress Web development Linux MySQL Android Windows Java C++ / C# Layout React Ubuntu Yii Django Programming 1C-Bitrix Laravel System administration Telegram JSON Debian PostgreSQL IOS Google Htaccess Windows Server
Make a leaderReport
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")

Reply
Answer the question

Answer the question

In order to leave comments, you need to log in

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

if '+' in var:

Similar questions
P
petrro2019-10-12 20:02:58
How to pass a for loop to the forEach method without changing anything (or almost nothing) in the code except for the for loop itself? 3Reply
K
Karen Mnatsakanyan2017-06-10 13:10:11
Creating a form in Custom Field Suite? 3Reply
A
AlexCruel2021-05-15 08:40:17
How to remove the mandatory authorization of the 1C web service? 4Reply
N
Nikita Shchypylov2017-07-18 17:26:44
What is the best file structure for React? 3Reply
C
ChernovGV2015-08-13 06:09:59
How to implement adding items with markups to the cart in modx revo shopkeeper 3? 1Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners