jeudi 14 janvier 2021

I need my code to only accept float values

 if datatype == "Float":
            if not data:
                if not data:
                    print(message)
                return False,data
            else:
                return True,data

I've tried using .isdecimal but it is not working (If not data.isdecimal)

Aucun commentaire:

Enregistrer un commentaire