+ 1

Can i write like if a = float print this

If no how to write it in the correct form

4th Mar 2019, 5:52 AM
Digness Titantron
Digness Titantron - avatar
4 Respostas
+ 5
You can use this snippet a = float(5.644) if type(a) == float : print(a) else: print("no")
4th Mar 2019, 6:13 AM
Seniru
Seniru - avatar
+ 7
Move ahead in your tutorial, you will eventually get an answer. Float is a numeric data type.
4th Mar 2019, 6:11 AM
Da2
Da2 - avatar
+ 6
In what language?
4th Mar 2019, 5:54 AM
Da2
Da2 - avatar
4th Mar 2019, 6:08 AM
Digness Titantron
Digness Titantron - avatar