mercredi 23 décembre 2020

How to convert string number to int and avoid the string text before convert

I would like to create the check condition string is string number or not so, how I can do in python

x = "String"
y = "12"

if x is string:
   print("this is string")
if y is string:
   print("this is not string")

Aucun commentaire:

Enregistrer un commentaire