On Fri, Apr 24, 2020 at 11:26 AM Deac-33 Lancaster <dea...@gmail.com> wrote:
>
> I'm aware that you can find the type of a variable with
>    type(var)
>
> But are there Boolean operators in Python3.8 to test the data type, e.g.
>   is_floate(var)
>   is_string(var)
> etc. ?
>
> (If this is the wrong group for this question, what group should I use.)
>

Yep! You can ask questions like this:

isinstance(var, int)
isinstance(var, str)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to