Answers for "check if item is string python"

2

is instance string python

isinstance(x, int)
isinstance(s, str)
Posted by: Guest on December-08-2020
0

how to check a string in if statement python

if var in ['string one', 'string two']:
    do_something()
Posted by: Guest on November-24-2020

Code answers related to "check if item is string python"

Python Answers by Framework

Browse Popular Code Answers by Language